Use built in BlockChangePacket and MultiBlockChangePacket
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user