Worked on loading chunks correctly

This commit is contained in:
Kyler Olsen 2024-04-17 13:42:48 -06:00
parent 5b6e8b8a72
commit bc938ffbd4
1 changed files with 6 additions and 2 deletions

View File

@ -59,7 +59,7 @@ class YTDServerProtocol(ServerProtocol):
"player_position_and_look",
self.buff_type.pack("dddff?",
0, # x
385, # y Must be >= build height to pass the "Loading Terrain" screen on 1.18.2
325, # y Must be >= build height to pass the "Loading Terrain" screen on 1.18.2
0, # z
0, # yaw
0, # pitch
@ -81,6 +81,10 @@ class YTDServerProtocol(ServerProtocol):
self.send_chunk(-1,0)
self.send_chunk(0,-1)
self.send_chunk(-1,-1)
# self.send_chunk(1,0)
# self.send_chunk(0,1)
# self.send_chunk(1,1)
self.send_update_view_position(0,0)
def send_join_game(self):
# Build up fields for "Join Game" packet
@ -169,7 +173,7 @@ class YTDServerProtocol(ServerProtocol):
self.buff_type.pack_varint(len(sections_data)),
sections_data,
self.buff_type.pack_varint(0), # Always zero block entities
self.buff_type.pack('?', False),
self.buff_type.pack('?', True),
self.buff_type.pack_varint(0), # Sky Light Mask
self.buff_type.pack_varint(0), # Block Light Mask
self.buff_type.pack_varint(0), # Empty Sky Light Mask