From cd19153e6d82db8433711b05dd16b89d9a567920 Mon Sep 17 00:00:00 2001 From: Robin Kupper Date: Mon, 11 Jul 2011 19:57:22 +0200 Subject: [PATCH] Fixed out of range for item data --- src/de/diddiz/LogBlock/ChestAccess.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/de/diddiz/LogBlock/ChestAccess.java b/src/de/diddiz/LogBlock/ChestAccess.java index 080889b..a59080b 100644 --- a/src/de/diddiz/LogBlock/ChestAccess.java +++ b/src/de/diddiz/LogBlock/ChestAccess.java @@ -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; } }