mirror of
https://github.com/GTNewHorizons/Chisel.git
synced 2026-11-11 15:57:31 +00:00
Fix crash on left click chisel when custom variations have been added
This commit is contained in:
1 parent
03bf8e0724
commit
8f435bb3ee
1 file changed
+1
-2
@@ -15,7 +15,6 @@ import com.cricketcraft.chisel.api.carving.ICarvingGroup;
|
||||
import com.cricketcraft.chisel.api.carving.ICarvingVariation;
|
||||
import com.cricketcraft.chisel.api.carving.IChiselMode;
|
||||
import com.cricketcraft.chisel.carving.Carving;
|
||||
import com.cricketcraft.chisel.carving.CarvingVariation;
|
||||
import com.cricketcraft.chisel.utils.General;
|
||||
|
||||
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
|
||||
@@ -69,7 +68,7 @@ public final class ChiselController {
|
||||
list.add(General.getVariation(stack));
|
||||
}
|
||||
|
||||
ICarvingVariation[] variations = list.toArray(new CarvingVariation[] {});
|
||||
ICarvingVariation[] variations = list.toArray(new ICarvingVariation[] {});
|
||||
|
||||
if (chisel.canChiselBlock(event.world, event.entityPlayer, x, y, z, block, metadata)) {
|
||||
ItemStack target = General.getChiselTarget(held);
|
||||
|
||||
Reference in new issue
Block a user