diff --git a/treepuncher/treepuncher.py b/treepuncher/treepuncher.py index 53ea57e..06fca9c 100644 --- a/treepuncher/treepuncher.py +++ b/treepuncher/treepuncher.py @@ -164,9 +164,13 @@ class Treepuncher(MinecraftClient): def _register_handlers(self): @self.on_disconnected() - async def on_disconnected(): + async def disconnected_cb(): self.in_game = False + @self.on_connected() + async def connected_cb(): + self.tablist = {} + @self.on_packet(PacketSetSlot) async def on_set_slot(packet:PacketSetSlot): if packet.windowId == 0: # player inventory