Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-11-16 21:10:17 +01:00
Fix for spawnMinecart.
Dieser Commit ist enthalten in:
Ursprung
0ef0bdb61c
Commit
546e1306d8
@ -694,9 +694,9 @@ public class CraftWorld implements World {
|
|||||||
entity = new EntitySnowball(world, x, y, z);
|
entity = new EntitySnowball(world, x, y, z);
|
||||||
} else if (Minecart.class.isAssignableFrom(clazz)) {
|
} 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());
|
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());
|
entity = new EntityMinecart(world, x, y, z, CraftMinecart.Type.StorageMinecart.getId());
|
||||||
} else {
|
} else {
|
||||||
entity = new EntityMinecart(world, x, y, z, CraftMinecart.Type.Minecart.getId());
|
entity = new EntityMinecart(world, x, y, z, CraftMinecart.Type.Minecart.getId());
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren