mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-03 17:52:28 +01:00
Fix for spawnMinecart.
By: sunkid <sunkid@iminurnetz.com>
This commit is contained in:
parent
cd27191ee2
commit
e1f49291ce
1 changed files with 2 additions and 2 deletions
|
@ -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());
|
||||
|
|
Loading…
Reference in a new issue