This commit is contained in:
Kyler 2024-04-17 22:28:45 -06:00
parent bc938ffbd4
commit 45a1166aee
1 changed files with 0 additions and 6 deletions

View File

@ -166,10 +166,7 @@ class YTDServerProtocol(ServerProtocol):
self.send_packet(
'chunk_data',
self.buff_type.pack('ii', x, z),
# # self.buff_type.pack('ii?', x, z, full),
# # self.buff_type.pack_chunk_bitmask(sections),
self.buff_type.pack_nbt(heightmap),
# # self.buff_type.pack_array('I', biomes) if full else b'',
self.buff_type.pack_varint(len(sections_data)),
sections_data,
self.buff_type.pack_varint(0), # Always zero block entities
@ -271,9 +268,6 @@ class YTDServerFactory(ServerFactory):
sec[0][0] = {'name': 'minecraft:grass_block', 'snowy': 'false'}
for i in range(1,16*16*16):
sec[0][i] = {'name': 'minecraft:air'}
# height_map = NBT.TagCompound({'MOTION_BLOCKING':NBT.TagLongArray(PackedArray.empty_height())})
# height_map = NBT.TagRoot(NBT.TagCompound({'MOTION_BLOCKING':NBT.TagLongArray(PackedArray.empty_height())}))
# height_map = NBT.TagRoot({'MOTION_BLOCKING':NBT.TagLongArray(PackedArray.empty_height())})
height_map = NBT.TagRoot({'':NBT.TagCompound({'MOTION_BLOCKING':NBT.TagLongArray(PackedArray.empty_height())})})
return sections, height_map