From a1de7ac9ff4a7b48f7d6daedc815f2a01f42837f Mon Sep 17 00:00:00 2001 From: Video Date: Thu, 29 Jul 2021 05:35:28 -0600 Subject: [PATCH] FS-314 --- .../totalfreedommod/blocking/EventBlocker.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/main/java/me/totalfreedom/totalfreedommod/blocking/EventBlocker.java b/src/main/java/me/totalfreedom/totalfreedommod/blocking/EventBlocker.java index 70ed87f3..11cd8ff2 100644 --- a/src/main/java/me/totalfreedom/totalfreedommod/blocking/EventBlocker.java +++ b/src/main/java/me/totalfreedom/totalfreedommod/blocking/EventBlocker.java @@ -146,12 +146,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) entity).isTamed()) { - if (((Tameable)entity).isTamed()) - { - event.setCancelled(true); - } + event.setCancelled(true); } } }