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]); height = Integer.parseInt(args[3]);
} }
if (width % 2 == 0 || height % 2 == 0){ if (width % 2 == 0){
sender.sendMessage("Width and/or height is an even number. Adding one"); sender.sendMessage("Width is an even number. Adding one");
width += width % 2 == 0 ? 1 : 0; width += width % 2 == 0 ? 1 : 0;
height += height % 2 == 0 ? 1 : 0;
} }
sender.sendMessage("Creating new Structure"); sender.sendMessage("Creating new Structure");