Fix crash when left clicking blocks that are not in a carving group

This commit is contained in:
tterrag1098 committed 2015-01-21 11:40:00 -05:00
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())) {