From ca16c195c3612cbdf24d9f81c2a2b45ab57580ef Mon Sep 17 00:00:00 2001 From: Xefir Date: Sat, 19 May 2012 18:21:33 +0200 Subject: [PATCH] Resolve CastException BloodMoon --- .../bukkit/bloodmoon/entities/BloodMoonEntitySkeleton.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/uk/co/jacekk/bukkit/bloodmoon/entities/BloodMoonEntitySkeleton.java b/src/uk/co/jacekk/bukkit/bloodmoon/entities/BloodMoonEntitySkeleton.java index 357e3a5..06cd13d 100755 --- a/src/uk/co/jacekk/bukkit/bloodmoon/entities/BloodMoonEntitySkeleton.java +++ b/src/uk/co/jacekk/bukkit/bloodmoon/entities/BloodMoonEntitySkeleton.java @@ -1,9 +1,9 @@ package uk.co.jacekk.bukkit.bloodmoon.entities; import java.lang.reflect.Field; -import java.util.ArrayList; import org.bukkit.Location; +import org.bukkit.craftbukkit.util.UnsafeList; import org.bukkit.entity.Skeleton; import uk.co.jacekk.bukkit.bloodmoon.BloodMoon; @@ -28,7 +28,7 @@ public class BloodMoonEntitySkeleton extends net.minecraft.server.EntitySkeleton a.setAccessible(true); @SuppressWarnings("unchecked") - ArrayList goals = (ArrayList) a.get(this.goalSelector); + UnsafeList goals = (UnsafeList) a.get(this.goalSelector); for (Object item : goals){ Field goal = item.getClass().getDeclaredField("a");