From 30e54109067a759ef42eab3bd01367a98736494b Mon Sep 17 00:00:00 2001 From: nossr50 Date: Fri, 2 Mar 2012 09:37:55 -0800 Subject: [PATCH] Adding break; to switch in onEntityDamage --- .../java/com/gmail/nossr50/listeners/mcEntityListener.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/gmail/nossr50/listeners/mcEntityListener.java b/src/main/java/com/gmail/nossr50/listeners/mcEntityListener.java index 73b802aaa..9f73967c7 100644 --- a/src/main/java/com/gmail/nossr50/listeners/mcEntityListener.java +++ b/src/main/java/com/gmail/nossr50/listeners/mcEntityListener.java @@ -119,11 +119,12 @@ public class mcEntityListener implements Listener if(!event.isCancelled() && event.getDamage() >= 1) PP.setRecentlyHurt(System.currentTimeMillis()); } - + break; case WOLF: Wolf wolf = (Wolf) entity; if((wolf.getNoDamageTicks() < wolf.getMaximumNoDamageTicks()/2.0F) && wolf.isTamed() && wolf.getOwner() != null) Taming.preventDamage(event, plugin); + break; } }