Fix EntityItemPickupEvent 'pop' sound spamming.

This commit is contained in:
LexManos committed 2012-08-17 13:31:47 -07:00
1 parent 912072535d
commit 20e38dca99
2 files changed
+18 -4

No files matched your search

@@ -9,10 +9,21 @@ import net.minecraftforge.event.Cancelable;
public class EntityItemPickupEvent extends PlayerEvent
{
public final EntityItem item;
private boolean handled = false;
public EntityItemPickupEvent(EntityPlayer player, EntityItem item)
{
super(player);
this.item = item;
}
public boolean isHandled()
{
return handled;
}
public void setHandled()
{
handled = true;
}
}