mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-07-18 18:23:06 +00:00
Update CommandIrisStructureCreate.java
This commit is contained in:
parent
672a66695e
commit
844d500037
@ -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");
|
||||
|
Loading…
x
Reference in New Issue
Block a user