mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 02:37:27 +00:00
ScriptCustomItem:
-Increased max stack size to 127.
This commit is contained in:
1 parent
f3f209820c
commit
4b7d8e744e
1 file changed
+2
-2
@@ -196,11 +196,11 @@ public class ScriptCustomItem extends ScriptItemStack implements IItemCustom, IS
|
||||
}
|
||||
|
||||
public void setMaxStackSize(int size) {
|
||||
if (size >= 1 && size <= 64) {
|
||||
if (size >= 1 && size <= 127) {
|
||||
this.stackSize = size;
|
||||
saveItemData();
|
||||
} else {
|
||||
throw new CustomNPCsException("Stacksize has to be between 1 and 64", new Object[0]);
|
||||
throw new CustomNPCsException("Stacksize has to be between 1 and 127", new Object[0]);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user