summaryrefslogtreecommitdiffstats
path: root/EssentialsProtect/src
diff options
context:
space:
mode:
authorKHobbits <rob@khobbits.co.uk>2012-03-11 01:46:01 +0000
committerKHobbits <rob@khobbits.co.uk>2012-03-11 01:46:01 +0000
commit5c2622b39051846f02d44638fbe8b37aa06fe64c (patch)
treef64838bd3f71ba9752fb23e6e8fb4ce2ab4cc703 /EssentialsProtect/src
parentc7046b696ab7f6136acf4c22fb0e7b0d88d91629 (diff)
downloadEssentials-5c2622b39051846f02d44638fbe8b37aa06fe64c.tar
Essentials-5c2622b39051846f02d44638fbe8b37aa06fe64c.tar.gz
Essentials-5c2622b39051846f02d44638fbe8b37aa06fe64c.tar.lz
Essentials-5c2622b39051846f02d44638fbe8b37aa06fe64c.tar.xz
Essentials-5c2622b39051846f02d44638fbe8b37aa06fe64c.zip
Add Enderman check to EntityChangeEvent (Should fix sheep eating grass).
Diffstat (limited to 'EssentialsProtect/src')
-rw-r--r--EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtectEntityListener.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtectEntityListener.java b/EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtectEntityListener.java
index 57302517f..d19f48abb 100644
--- a/EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtectEntityListener.java
+++ b/EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtectEntityListener.java
@@ -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;