Update CommandIrisStructureCreate.java

Fix creator arguments (I'm stoopid)
This commit is contained in:
BuildTools 2020-10-23 00:30:06 +02:00
parent aa5a72b788
commit 575b5482b6

View File

@ -48,13 +48,22 @@ public class CommandIrisStructureCreate extends MortarCommand
width = 5;
height = 5;
} else if (args.length == 3){
sender.sendMessage("No height specified, taking width as height");
width = Integer.parseInt(args[2]);
height = Integer.parseInt(args[2]);
if (args[2].equalsIgnoreCase("-3d"))
{
sender.sendMessage("No width and height specified. Taking defaults (5 and 5)");
width = 5;
height = 5;
d3 = true;
} else {
sender.sendMessage("No height specified, taking width as height");
width = Integer.parseInt(args[2]);
height = Integer.parseInt(args[2]);
}
} else if (args.length == 4){
width = Integer.parseInt(args[2]);
if (!args[3].equalsIgnoreCase("-3d")) {
if (args[3].equalsIgnoreCase("-3d"))
{
sender.sendMessage("No height specified, taking width as height");
height = Integer.parseInt(args[2]);
} else {