From f2fccd4a6491ed8b652438b5d8a8ad345b14dc9f Mon Sep 17 00:00:00 2001 From: nossr50 Date: Wed, 29 Feb 2012 09:11:45 -0800 Subject: [PATCH] Add casting to onEntityDeath --- src/main/java/com/gmail/nossr50/listeners/mcEntityListener.java | 2 +- 1 file changed, 1 insertion(+), 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 65f2e14db..bd5ed7e9b 100644 --- a/src/main/java/com/gmail/nossr50/listeners/mcEntityListener.java +++ b/src/main/java/com/gmail/nossr50/listeners/mcEntityListener.java @@ -147,7 +147,7 @@ public class mcEntityListener implements Listener @EventHandler public void onEntityDeath(EntityDeathEvent event) { - LivingEntity x = event.getEntity(); + LivingEntity x = (LivingEntity) event.getEntity(); x.setFireTicks(0); //Remove mob from mob spawner list