Add null check for block

This commit is contained in:
tterrag1098 committed 2015-01-10 04:51:48 -05:00
1 parent cce5e65b08
commit ea0740aab5
1 file changed
+3 -1
@@ -43,7 +43,9 @@ public class VariationCompat {
private void registerAll(List<Triple<Block, Integer, String>> blocks) {
for (Triple<Block, Integer, String> t : blocks) {
Carving.chisel.addVariation(t.getRight(), t.getLeft(), t.getMiddle(), 99);
if (t.getRight() != null) {
Carving.chisel.addVariation(t.getRight(), t.getLeft(), t.getMiddle(), 99);
}
}
}