Fixed out of range for item data
This commit is contained in:
1 parent
6365b64d47
commit
cd19153e6d
1 file changed
+1
-1
@@ -8,6 +8,6 @@ public class ChestAccess
|
||||
public ChestAccess(short itemType, short itemAmount, byte itemData) {
|
||||
this.itemType = itemType;
|
||||
this.itemAmount = itemAmount;
|
||||
this.itemData = itemData;
|
||||
this.itemData = itemData >= 0 ? itemData : 0;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user