mirror of
https://github.com/songoda/FabledSkyBlock.git
synced 2024-09-02 18:20:11 +02:00
Made oldSize more accurate.
This commit is contained in:
parent
4dfe31db16
commit
f5fdcf173c
|
@ -68,13 +68,16 @@ public class StackableCommand extends SubCommand {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
final int oldSize;
|
||||||
|
|
||||||
if (stack == null) {
|
if (stack == null) {
|
||||||
stack = new Stackable(loc, block.getType());
|
stack = new Stackable(loc, block.getType());
|
||||||
stackableManager.addStack(stack);
|
stackableManager.addStack(stack);
|
||||||
|
oldSize = 0;
|
||||||
|
} else {
|
||||||
|
oldSize = stack.getSize();
|
||||||
}
|
}
|
||||||
|
|
||||||
final int oldSize = stack.getSize();
|
|
||||||
|
|
||||||
stack.setSize(amount);
|
stack.setSize(amount);
|
||||||
|
|
||||||
String input = messageConfig.getString("Command.Island.Admin.Stackable.Setsize.Success");
|
String input = messageConfig.getString("Command.Island.Admin.Stackable.Setsize.Success");
|
||||||
|
|
Loading…
Reference in New Issue
Block a user