9
0
mirror of https://github.com/VolmitSoftware/Iris.git synced 2025-12-25 10:09:14 +00:00

Fix parameterless object selection modificaitons

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

View File

@@ -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();

View File

@@ -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();

View File

@@ -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();