Fix ChunkDataPacket using doubles for block entity data instead of ints

This commit is contained in:
jglrxavpok 2020-11-03 09:03:54 +01:00
parent 547e7cf6e6
commit d09c2756aa

View File

@ -102,9 +102,9 @@ public class ChunkDataPacket implements ServerPacket {
final BlockPosition blockPosition = ChunkUtils.getBlockPosition(index, chunkX, chunkZ);
NBTCompound nbt = new NBTCompound()
.setDouble("x", blockPosition.getX())
.setDouble("y", blockPosition.getY())
.setDouble("z", blockPosition.getZ());
.setInt("x", blockPosition.getX())
.setInt("y", blockPosition.getY())
.setInt("z", blockPosition.getZ());
final short customBlockId = customBlocksId[index];
final CustomBlock customBlock = BLOCK_MANAGER.getCustomBlock(customBlockId);