From 5f50a46603b7ebcef42c92e0b60b3ffdc7989c26 Mon Sep 17 00:00:00 2001 From: Glitchfinder Date: Mon, 13 May 2013 17:05:44 -0700 Subject: [PATCH] Setting the treasure config to only enforce data limits for blocks. --- .../java/com/gmail/nossr50/config/treasure/TreasureConfig.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/gmail/nossr50/config/treasure/TreasureConfig.java b/src/main/java/com/gmail/nossr50/config/treasure/TreasureConfig.java index 35b66daac..19788089b 100644 --- a/src/main/java/com/gmail/nossr50/config/treasure/TreasureConfig.java +++ b/src/main/java/com/gmail/nossr50/config/treasure/TreasureConfig.java @@ -117,7 +117,7 @@ public class TreasureConfig extends ConfigLoader { reason.add("Invalid amount: " + amount); } - if (data > 127 || data < -128) { + if (id < 256 && (data > 127 || data < -128)) { reason.add("Invalid data: " + data); }