inv size
This commit is contained in:
1 parent
e6158c1aab
commit
b79b942819
3 files changed
+20
-6
No files matched your search
@@ -119,7 +119,7 @@ public class NBTSerializableValue extends Value
|
||||
if (slot < 0)
|
||||
slot = invSize + slot;
|
||||
if (slot < 0 || slot >= invSize)
|
||||
throw new InternalExpressionException("Slot for inventory should be between 0 and "+(invSize-1));
|
||||
return inv.getInvSize(); // outside of inventory
|
||||
return slot;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user