diff options
author | sunkid <sunkid@iminurnetz.com> | 2011-06-18 09:30:50 -0700 |
---|---|---|
committer | EvilSeph <evilseph@unaligned.org> | 2011-06-18 21:56:42 -0400 |
commit | 546e1306d88978fcad3ddcfadaa2df6945a106d8 (patch) | |
tree | 6128c4773abd00c7425842fc7de27d1f162ee275 /src/main/java/org | |
parent | 0ef0bdb61c2195fad3ffa5fd39de6649549f6058 (diff) | |
download | craftbukkit-546e1306d88978fcad3ddcfadaa2df6945a106d8.tar craftbukkit-546e1306d88978fcad3ddcfadaa2df6945a106d8.tar.gz craftbukkit-546e1306d88978fcad3ddcfadaa2df6945a106d8.tar.lz craftbukkit-546e1306d88978fcad3ddcfadaa2df6945a106d8.tar.xz craftbukkit-546e1306d88978fcad3ddcfadaa2df6945a106d8.zip |
Fix for spawnMinecart.
Diffstat (limited to 'src/main/java/org')
-rw-r--r-- | src/main/java/org/bukkit/craftbukkit/CraftWorld.java | 4 |
1 files 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 b31cf5f1..0a1c9d30 100644 --- a/src/main/java/org/bukkit/craftbukkit/CraftWorld.java +++ b/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()); |