mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-07-18 18:23:06 +00:00
Fix parameterless object selection modificaitons
Defaults to 1
This commit is contained in:
parent
c65c197fbe
commit
125a89b5f9
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user