From faba7e2a07b7f223a859a47fc433cbfd75a33b4e Mon Sep 17 00:00:00 2001 From: LexManos Date: Mon, 19 Aug 2013 10:45:57 -0700 Subject: [PATCH] Skipp toss event for null entity items. Closes #732 --- common/net/minecraftforge/common/ForgeHooks.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/common/net/minecraftforge/common/ForgeHooks.java b/common/net/minecraftforge/common/ForgeHooks.java index 2ff467546..4a54f72d7 100644 --- a/common/net/minecraftforge/common/ForgeHooks.java +++ b/common/net/minecraftforge/common/ForgeHooks.java @@ -395,6 +395,11 @@ public class ForgeHooks player.capturedDrops.clear(); player.captureDrops = false; + if (ret == null) + { + return null; + } + ItemTossEvent event = new ItemTossEvent(ret, player); if (MinecraftForge.EVENT_BUS.post(event)) {