1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-08-10 16:48:05 +02:00

Add Enderman check to EntityChangeEvent (Should fix sheep eating grass).

This commit is contained in:
KHobbits
2012-03-11 01:46:01 +00:00
parent c7046b696a
commit 5c2622b390

View File

@@ -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;