From 3e517b93c9485594f4078c40ab145ab58e6d0be1 Mon Sep 17 00:00:00 2001 From: Adubbz Date: Thu, 21 Jan 2016 10:29:18 +1100 Subject: [PATCH] Prevented a crash on right clicking with an empty hand --- .../biomesoplenty/common/handler/AchievementEventHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/biomesoplenty/common/handler/AchievementEventHandler.java b/src/main/java/biomesoplenty/common/handler/AchievementEventHandler.java index bd2df33eb..5bb0ae14a 100644 --- a/src/main/java/biomesoplenty/common/handler/AchievementEventHandler.java +++ b/src/main/java/biomesoplenty/common/handler/AchievementEventHandler.java @@ -144,7 +144,7 @@ public class AchievementEventHandler if (event.action != Action.LEFT_CLICK_BLOCK) { ItemStack stack = event.entityPlayer.getHeldItem(); - Item item = stack.getItem(); + Item item = stack != null ? stack.getItem() : null; EntityPlayer player = event.entityPlayer; //Gone Home