mirror of
https://github.com/GTNewHorizons/Chisel.git
synced 2026-11-12 08:17:48 +00:00
Add null check for block
This commit is contained in:
1 parent
b0889fc2aa
commit
e6fa56eb23
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user