mirror of
https://github.com/GTNewHorizons/Chisel.git
synced 2026-11-11 15:57:31 +00:00
Fix crash when left clicking blocks that are not in a carving group
This commit is contained in:
1 parent
3ac7bd79e7
commit
aeebccf83e
3 files changed
+8
-1
No files matched your search
@@ -52,6 +52,10 @@ public final class ChiselController {
|
||||
int metadata = event.world.getBlockMetadata(x, y, z);
|
||||
ICarvingGroup group = Carving.chisel.getGroup(block, metadata);
|
||||
|
||||
if (group == null) {
|
||||
return;
|
||||
}
|
||||
|
||||
List<ICarvingVariation> list = group.getVariations();
|
||||
|
||||
main: for (ItemStack stack : OreDictionary.getOres(group.getOreName())) {
|
||||
|
||||
Reference in new issue
Block a user