Fix gapple bugs and unload far chunks
This commit is contained in:
@@ -240,11 +240,15 @@ class Game:
|
||||
print(traceback.format_exc())
|
||||
|
||||
def handle_position_and_look(self, packet):
|
||||
print('pos and look:')
|
||||
print(packet)
|
||||
p = LPoint3f(x=packet.x, y=packet.y, z=packet.z)
|
||||
self.g.pos = p
|
||||
|
||||
confirm_packet = serverbound.play.TeleportConfirmPacket()
|
||||
confirm_packet.teleport_id = packet.teleport_id
|
||||
self.g.connection.write_packet(confirm_packet)
|
||||
|
||||
|
||||
def handle_chat(self, message):
|
||||
source, text = message
|
||||
reply = None
|
||||
|
||||
Reference in New Issue
Block a user