mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2025-06-17 07:33:54 +00:00
Fixes FS-314
This commit is contained in:
@ -163,12 +163,9 @@ public class EventBlocker extends FreedomService
|
||||
if (ConfigEntry.ENABLE_PET_PROTECT.getBoolean())
|
||||
{
|
||||
Entity entity = event.getEntity();
|
||||
if (entity instanceof Tameable)
|
||||
if (entity instanceof Tameable tameable && tameable.isTamed())
|
||||
{
|
||||
if (((Tameable) entity).isTamed())
|
||||
{
|
||||
event.setCancelled(true);
|
||||
}
|
||||
event.setCancelled(true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user