mirror of
https://github.com/essentials/Essentials.git
synced 2025-01-17 21:39:26 +01:00
Add Enderman check to EntityChangeEvent (Should fix sheep eating grass).
This commit is contained in:
parent
554a209af1
commit
ba50ce5f3a
@ -334,7 +334,7 @@ public class EssentialsProtectEntityListener implements Listener
|
||||
{
|
||||
return;
|
||||
}
|
||||
if (prot.getSettingBool(ProtectConfig.prevent_enderman_pickup))
|
||||
if (event.getEntityType() == EntityType.ENDERMAN && prot.getSettingBool(ProtectConfig.prevent_enderman_pickup))
|
||||
{
|
||||
event.setCancelled(true);
|
||||
return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user