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

Update CommandIrisStructureCreate.java

This commit is contained in:
BuildTools
2020-10-27 19:09:59 +01:00
parent 672a66695e
commit 844d500037

View File

@@ -79,10 +79,9 @@ public class CommandIrisStructureCreate extends MortarCommand
height = Integer.parseInt(args[3]);
}
if (width % 2 == 0 || height % 2 == 0){
sender.sendMessage("Width and/or height is an even number. Adding one");
if (width % 2 == 0){
sender.sendMessage("Width is an even number. Adding one");
width += width % 2 == 0 ? 1 : 0;
height += height % 2 == 0 ? 1 : 0;
}
sender.sendMessage("Creating new Structure");