From e1f49291ce27ccda9367adf47af95a74be608930 Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Sat, 18 Jun 2011 09:30:50 -0700 Subject: [PATCH] Fix for spawnMinecart. By: sunkid --- .../src/main/java/org/bukkit/craftbukkit/CraftWorld.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/CraftWorld.java b/paper-server/src/main/java/org/bukkit/craftbukkit/CraftWorld.java index b31cf5f1a6..0a1c9d3059 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/CraftWorld.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/CraftWorld.java @@ -694,9 +694,9 @@ public class CraftWorld implements World { entity = new EntitySnowball(world, x, y, z); } else if (Minecart.class.isAssignableFrom(clazz)) { - if (clazz.isAssignableFrom(PoweredMinecart.class)) { + if (PoweredMinecart.class.isAssignableFrom(clazz)) { entity = new EntityMinecart(world, x, y, z, CraftMinecart.Type.PoweredMinecart.getId()); - } else if (clazz.isAssignableFrom(StorageMinecart.class)) { + } else if (StorageMinecart.class.isAssignableFrom(clazz)) { entity = new EntityMinecart(world, x, y, z, CraftMinecart.Type.StorageMinecart.getId()); } else { entity = new EntityMinecart(world, x, y, z, CraftMinecart.Type.Minecart.getId());