mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-22 15:18:34 +01:00
Fix this on 1.11 too, closes #421 for good
This commit is contained in:
parent
9e06e8b4cc
commit
b43886d954
1 changed files with 4 additions and 0 deletions
|
@ -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