Skipp toss event for null entity items. Closes #732
This commit is contained in:
parent
baf1e771e9
commit
faba7e2a07
1 changed files with 5 additions and 0 deletions
|
@ -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))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue