From f04d873d21072658e52767743494e196689a69d1 Mon Sep 17 00:00:00 2001 From: alemidev Date: Sun, 3 Jul 2022 17:13:25 +0200 Subject: [PATCH] fix: I actually read wiki.vg --- src/treepuncher/game/container.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/treepuncher/game/container.py b/src/treepuncher/game/container.py index 449b9a6..ba34ca3 100644 --- a/src/treepuncher/game/container.py +++ b/src/treepuncher/game/container.py @@ -67,9 +67,9 @@ class GameContainer(Scaffold): @self.on_packet(PacketSetSlot) async def on_set_slot(packet:PacketSetSlot): - if packet.windowId < 0: + if packet.windowId == 0: self.window_entity_id = 0 self.window_id = 0 self.window_title = "" - elif self.window_id > 0 and packet.windowId == self.window_id: + elif packet.windowId == self.window_id: self.window_inventory[packet.slot] = packet.item