Fixed out of range for item data

This commit is contained in:
Robin Kupper
2011-07-11 19:57:22 +02:00
parent 6365b64d47
commit cd19153e6d

View File

@@ -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;
}
}