Skipp toss event for null entity items. Closes #732

This commit is contained in:
LexManos 2013-08-19 10:45:57 -07:00
parent baf1e771e9
commit faba7e2a07

View file

@ -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))
{