From 4ee38f92cf2d028d9f3a16a9558eedea65060317 Mon Sep 17 00:00:00 2001 From: alisolarflare Date: Sat, 17 Dec 2016 07:36:00 -0500 Subject: [PATCH] Fixed #29 and its friends --- .../alipresents/components/insurance/getInsurance.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/buttondevteam/alipresents/components/insurance/getInsurance.java b/src/buttondevteam/alipresents/components/insurance/getInsurance.java index 4ad5af7..d8aa925 100644 --- a/src/buttondevteam/alipresents/components/insurance/getInsurance.java +++ b/src/buttondevteam/alipresents/components/insurance/getInsurance.java @@ -34,6 +34,10 @@ public class getInsurance extends ModCommand { // argument if (StringUtils.isNumeric(args[0]) && Insurance.isInsuranceType(args[1])){ amount = Integer.parseInt(args[0]); + insuranceType = InsuranceType.valueOf(args[1]); + break; + }else if (StringUtils.isNumeric(args[1]) && Insurance.isInsuranceType(args[0])){ + amount = Integer.parseInt(args[1]); insuranceType = InsuranceType.valueOf(args[0]); break; }else{