mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-26 16:58: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
|
@SubscribeEvent
|
||||||
public void onItemPickup(EntityItemPickupEvent event){
|
public void onItemPickup(EntityItemPickupEvent event){
|
||||||
|
if(event.isCanceled() || event.getResult() == Event.Result.ALLOW){
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
EntityPlayer player = event.getEntityPlayer();
|
EntityPlayer player = event.getEntityPlayer();
|
||||||
EntityItem item = event.getItem();
|
EntityItem item = event.getItem();
|
||||||
if(item != null && !item.isDead){
|
if(item != null && !item.isDead){
|
||||||
|
|
Loading…
Reference in a new issue