mirror of
https://github.com/PaperMC/Paper.git
synced 2026-11-25 10:29:41 -05:00
Fix for spawnMinecart.
This commit is contained in:
1 parent
0ef0bdb61c
commit
546e1306d8
1 file changed
+2
-2
@@ -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());
|
||||
|
||||
Reference in new issue
Block a user