From aed901654b7524b7c4ef12f2039ed71501dc28a3 Mon Sep 17 00:00:00 2001 From: md_5 Date: Thu, 25 Apr 2019 14:59:08 +1000 Subject: [PATCH] SPIGOT-4744: Cannot spawn Cat entity --- src/main/java/org/bukkit/craftbukkit/CraftWorld.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/bukkit/craftbukkit/CraftWorld.java b/src/main/java/org/bukkit/craftbukkit/CraftWorld.java index be47811b65..8550f9b710 100644 --- a/src/main/java/org/bukkit/craftbukkit/CraftWorld.java +++ b/src/main/java/org/bukkit/craftbukkit/CraftWorld.java @@ -1357,6 +1357,8 @@ public class CraftWorld implements World { entity = EntityTypes.WOLF.a(world); } else if (Parrot.class.isAssignableFrom(clazz)) { entity = EntityTypes.PARROT.a(world); + } else if (Cat.class.isAssignableFrom(clazz)) { + entity = EntityTypes.CAT.a(world); } } else if (PigZombie.class.isAssignableFrom(clazz)) { entity = EntityTypes.ZOMBIE_PIGMAN.a(world); @@ -1442,8 +1444,6 @@ public class CraftWorld implements World { entity = EntityTypes.DOLPHIN.a(world); } else if (Ocelot.class.isAssignableFrom(clazz)) { entity = EntityTypes.OCELOT.a(world); - } else if (Cat.class.isAssignableFrom(clazz)) { - entity = EntityTypes.CAT.a(world); } else if (Ravager.class.isAssignableFrom(clazz)) { entity = EntityTypes.RAVAGER.a(world); } else if (Panda.class.isAssignableFrom(clazz)) {