Fix UtilBlock setting ghost blocks

This commit is contained in:
Shaun Bennett 2016-05-18 18:03:54 +10:00
parent e3833b95ad
commit 8d7ef7cc9a

View File

@ -1475,10 +1475,13 @@ public class UtilBlock
world.loadChunk(cx, cz, true);
}
net.minecraft.server.v1_8_R3.Chunk chunk = ((CraftWorld) world).getHandle().getChunkAt(x >> 4, z >> 4);
WorldServer nmsWorld = ((CraftWorld) world).getHandle();
net.minecraft.server.v1_8_R3.Chunk chunk = nmsWorld.getChunkAt(x >> 4, z >> 4);
BlockPosition pos = new BlockPosition(x, y, z);
IBlockData ibd = net.minecraft.server.v1_8_R3.Block.getById(type).fromLegacyData(data);
chunk.a(pos, ibd);
nmsWorld.notify(pos);
}
/**