mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-29 19:41:47 +01:00
Fix ChunkDataPacket using doubles for block entity data instead of ints
This commit is contained in:
parent
547e7cf6e6
commit
d09c2756aa
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user