From 425a7c7f71c72a7b004507fefaa97defde7740a8 Mon Sep 17 00:00:00 2001 From: alemidev Date: Sun, 3 Jul 2022 17:24:31 +0200 Subject: [PATCH] fix: setBlock was messing up the world... --- src/treepuncher/game/world.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/treepuncher/game/world.py b/src/treepuncher/game/world.py index 31efd9c..0dbc29c 100644 --- a/src/treepuncher/game/world.py +++ b/src/treepuncher/game/world.py @@ -50,7 +50,7 @@ class GameWorld(Scaffold): @self.on_packet(PacketBlockChange) async def block_change_cb(packet:PacketBlockChange): - self.world.put_block(packet.location[0], packet.location[1], packet.location[2], packet.id) + self.world.put_block(packet.location[0], packet.location[1], packet.location[2], packet.type) @self.on_packet(PacketMultiBlockChange) async def multi_block_change_cb(packet:PacketMultiBlockChange):