This commit is contained in:
Video 2021-07-29 05:35:28 -06:00
parent a37364d07e
commit a1de7ac9ff

View File

@ -146,12 +146,9 @@ public class EventBlocker extends FreedomService
if (ConfigEntry.ENABLE_PET_PROTECT.getBoolean()) if (ConfigEntry.ENABLE_PET_PROTECT.getBoolean())
{ {
Entity entity = event.getEntity(); Entity entity = event.getEntity();
if (entity instanceof Tameable) if (entity instanceof Tameable && ((Tameable) entity).isTamed())
{ {
if (((Tameable)entity).isTamed()) event.setCancelled(true);
{
event.setCancelled(true);
}
} }
} }
} }