13
0
geforkt von Mirrors/Paper

SPIGOT-3051: Set pitch/yaw for spawned boats

Dieser Commit ist enthalten in:
md_5 2017-02-06 11:58:42 +11:00
Ursprung a1d3777d89
Commit 3c48711c05

Datei anzeigen

@ -900,6 +900,7 @@ public class CraftWorld implements World {
// order is important for some of these // order is important for some of these
if (Boat.class.isAssignableFrom(clazz)) { if (Boat.class.isAssignableFrom(clazz)) {
entity = new EntityBoat(world, x, y, z); entity = new EntityBoat(world, x, y, z);
entity.setPositionRotation(x, y, z, yaw, pitch);
} else if (FallingBlock.class.isAssignableFrom(clazz)) { } else if (FallingBlock.class.isAssignableFrom(clazz)) {
entity = new EntityFallingBlock(world, x, y, z, world.getType(new BlockPosition(x, y, z))); entity = new EntityFallingBlock(world, x, y, z, world.getType(new BlockPosition(x, y, z)));
} else if (Projectile.class.isAssignableFrom(clazz)) { } else if (Projectile.class.isAssignableFrom(clazz)) {