Fix parameterless object selection modificaitons

Defaults to 1
This commit is contained in:
BuildTools committed 2020-10-27 12:20:17 +01:00
1 parent c65c197fbe
commit 125a89b5f9
3 files changed
+3 -3

No files matched your search

@@ -45,7 +45,7 @@ public class CommandIrisObjectContract extends MortarCommand
return true;
}
int amt = Integer.valueOf(args[0]);
int amt = args.length == 1 ? Integer.valueOf(args[0]) : 1;
Location[] b = WandManager.getCuboid(p.getInventory().getItemInMainHand());
Location a1 = b[0].clone();
Location a2 = b[1].clone();
@@ -45,7 +45,7 @@ public class CommandIrisObjectExpand extends MortarCommand
return true;
}
int amt = Integer.valueOf(args[0]);
int amt = args.length == 1 ? Integer.valueOf(args[0]) : 1;
Location[] b = WandManager.getCuboid(p.getInventory().getItemInMainHand());
Location a1 = b[0].clone();
Location a2 = b[1].clone();
@@ -45,7 +45,7 @@ public class CommandIrisObjectShift extends MortarCommand
return true;
}
int amt = Integer.valueOf(args[0]);
int amt = args.length == 1 ? Integer.valueOf(args[0]) : 1;
Location[] b = WandManager.getCuboid(p.getInventory().getItemInMainHand());
Location a1 = b[0].clone();
Location a2 = b[1].clone();