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

+3
View File
@@ -1,3 +1,6 @@
2.3.3:
Fix crash when left clicking certain blocks with the chisel
2.3.2:
Fixed antiblocks being chiselable between colors
Added recipes to dye existing antiblocks
+1 -1
View File
@@ -1,4 +1,4 @@
mod_version=2.3.2
mod_version=2.3.3
minecraft_version=1.7.10
forge_version=10.13.2.1277
@@ -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())) {