From fb1a87f71be89410bae636db7ad8deb79dcede0c Mon Sep 17 00:00:00 2001 From: Andreas Troelsen Date: Fri, 30 Dec 2016 01:11:56 +0100 Subject: [PATCH] Make sure all mounts are invincible, not just normal horses. --- src/main/java/com/garbagemule/MobArena/ArenaListener.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/garbagemule/MobArena/ArenaListener.java b/src/main/java/com/garbagemule/MobArena/ArenaListener.java index 293bbf6..660dde3 100644 --- a/src/main/java/com/garbagemule/MobArena/ArenaListener.java +++ b/src/main/java/com/garbagemule/MobArena/ArenaListener.java @@ -649,7 +649,7 @@ public class ArenaListener onPetDamage(event, (Wolf) damagee, damager); } // Mount - else if (damagee instanceof Horse && monsters.hasMount(damagee)) { + else if (damagee instanceof AbstractHorse && monsters.hasMount(damagee)) { onMountDamage(event, (Horse) damagee, damager); } // Player