mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-04-25 07:59:44 +00:00
Add Enderman check to EntityChangeEvent (Should fix sheep eating grass).
This commit is contained in:
parent
c7046b696a
commit
5c2622b390
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue