From 933975a2f715e9f584d28e2b8789be00b31516bc Mon Sep 17 00:00:00 2001 From: Thinkofdeath Date: Fri, 20 Feb 2015 16:39:04 +0000 Subject: [PATCH] SPIGOT-593: Fix a mistake with the EntitySlice patch --- .../0159-Use-Standard-List-for-EntitySlices.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CraftBukkit-Patches/0159-Use-Standard-List-for-EntitySlices.patch b/CraftBukkit-Patches/0159-Use-Standard-List-for-EntitySlices.patch index 8ad0faa84..6e0442f20 100644 --- a/CraftBukkit-Patches/0159-Use-Standard-List-for-EntitySlices.patch +++ b/CraftBukkit-Patches/0159-Use-Standard-List-for-EntitySlices.patch @@ -45,7 +45,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 Entity entity = (Entity) iterator.next(); - if (entity.getBoundingBox().b(axisalignedbb) && (predicate == null || predicate.apply(entity))) { -+ if (entity.getClass().isAssignableFrom(oclass) && entity.getBoundingBox().b(axisalignedbb) && (predicate == null || predicate.apply(entity))) { // Spigot ++ if (oclass.isInstance(entity) && entity.getBoundingBox().b(axisalignedbb) && (predicate == null || predicate.apply(entity))) { // Spigot list.add(entity); } }