mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-06-09 00:41:36 +02:00
Fix this on 1.11 too, closes #421 for good
This commit is contained in:
parent
9e06e8b4cc
commit
b43886d954
|
@ -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){
|
||||
|
|
Loading…
Reference in a new issue