mirror of
https://github.com/songoda/FabledSkyBlock.git
synced 2024-11-27 12:45:25 +01:00
Made oldSize more accurate.
This commit is contained in:
parent
4dfe31db16
commit
f5fdcf173c
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user