mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-06 00:49:09 +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
|
@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