Fix this on 1.11 too, closes #421 for good

This commit is contained in:
Ellpeck 2016-11-29 21:53:07 +01:00
parent 9e06e8b4cc
commit b43886d954

View file

@ -70,6 +70,10 @@ public class ItemBag extends ItemBase{
@SubscribeEvent
public void onItemPickup(EntityItemPickupEvent event){
if(event.isCanceled() || event.getResult() == Event.Result.ALLOW){
return;
}
EntityPlayer player = event.getEntityPlayer();
EntityItem item = event.getItem();
if(item != null && !item.isDead){