Use built in BlockChangePacket and MultiBlockChangePacket

This commit is contained in:
2020-09-09 15:58:19 -06:00
parent 34dbe0e99e
commit e8998a0428
6 changed files with 38 additions and 123 deletions
+12
View File
@@ -97,3 +97,15 @@ def handle_chat(message, g):
if reply:
print(reply)
g.chat.send(reply)
def handle_time_update(packet, g):
l = g.local_state
l.time = packet.time_of_day % 24000
def handle_set_slot(packet, g):
print(packet)
if packet.window_id == 0:
g.inv[packet.slot] = packet.slot_data