Made oldSize more accurate.

This commit is contained in:
theone1000 2019-10-07 21:50:23 -06:00
parent 4dfe31db16
commit f5fdcf173c

View File

@ -68,13 +68,16 @@ public class StackableCommand extends SubCommand {
return;
}
final int oldSize;
if (stack == null) {
stack = new Stackable(loc, block.getType());
stackableManager.addStack(stack);
oldSize = 0;
} else {
oldSize = stack.getSize();
}
final int oldSize = stack.getSize();
stack.setSize(amount);
String input = messageConfig.getString("Command.Island.Admin.Stackable.Setsize.Success");