mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-05 06:07:54 +02:00
Add Enderman check to EntityChangeEvent (Should fix sheep eating grass).
This commit is contained in:
@@ -334,7 +334,7 @@ public class EssentialsProtectEntityListener implements Listener
|
|||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (prot.getSettingBool(ProtectConfig.prevent_enderman_pickup))
|
if (event.getEntityType() == EntityType.ENDERMAN && prot.getSettingBool(ProtectConfig.prevent_enderman_pickup))
|
||||||
{
|
{
|
||||||
event.setCancelled(true);
|
event.setCancelled(true);
|
||||||
return;
|
return;
|
||||||
|
Reference in New Issue
Block a user