mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-27 01:08:34 +01:00
Supposedly fixed item pickup happening multiple times with other mods
Closes #421
This commit is contained in:
parent
79f9eee9c0
commit
6db18f05fe
1 changed files with 4 additions and 0 deletions
|
@ -61,6 +61,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