13
0
geforkt von Mirrors/Paper

SPIGOT-4674: Allow spawning hanging on top/bottom of block

Dieser Commit ist enthalten in:
md_5 2019-03-22 20:33:20 +11:00
Ursprung d3ed151625
Commit d65a2576e4

Datei anzeigen

@ -1277,7 +1277,7 @@ public class CraftWorld implements World {
height = 9; height = 9;
} }
BlockFace[] faces = new BlockFace[]{BlockFace.EAST, BlockFace.NORTH, BlockFace.WEST, BlockFace.SOUTH}; BlockFace[] faces = new BlockFace[]{BlockFace.EAST, BlockFace.NORTH, BlockFace.WEST, BlockFace.SOUTH, BlockFace.UP, BlockFace.DOWN};
final BlockPosition pos = new BlockPosition((int) x, (int) y, (int) z); final BlockPosition pos = new BlockPosition((int) x, (int) y, (int) z);
for (BlockFace dir : faces) { for (BlockFace dir : faces) {
IBlockData nmsBlock = world.getType(pos.shift(CraftBlock.blockFaceToNotch(dir))); IBlockData nmsBlock = world.getType(pos.shift(CraftBlock.blockFaceToNotch(dir)));