mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-27 15:33:18 +00:00
Fix EntityItemPickupEvent 'pop' sound spamming.
This commit is contained in:
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;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user