Setting the treasure config to only enforce data limits for blocks.

This commit is contained in:
Glitchfinder 2013-05-13 17:05:44 -07:00 committed by T00thpick1
parent c5e6704530
commit 5f50a46603

View File

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