From 8b49a6c579901f5155799f1151d325b94d7f3ad6 Mon Sep 17 00:00:00 2001 From: Chicken Bones Date: Mon, 19 Aug 2013 08:04:10 +1000 Subject: [PATCH] Fixed double click crash --- codechicken/multipart/minecraft/EventHandler.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/codechicken/multipart/minecraft/EventHandler.java b/codechicken/multipart/minecraft/EventHandler.java index 836003b..d1f355d 100644 --- a/codechicken/multipart/minecraft/EventHandler.java +++ b/codechicken/multipart/minecraft/EventHandler.java @@ -39,6 +39,9 @@ public class EventHandler public static boolean place(EntityPlayer player, World world) { MovingObjectPosition hit = RayTracer.reTrace(world, player); + if(hit == null) + return false; + BlockCoord pos = new BlockCoord(hit.blockX, hit.blockY, hit.blockZ).offset(hit.sideHit); ItemStack held = player.getHeldItem(); McBlockPart part = null;