fix: setBlock was messing up the world...

This commit is contained in:
əlemi 2022-07-03 17:24:31 +02:00
parent f04d873d21
commit 425a7c7f71
No known key found for this signature in database
GPG key ID: BBCBFE5D7244634E

View file

@ -50,7 +50,7 @@ class GameWorld(Scaffold):
@self.on_packet(PacketBlockChange) @self.on_packet(PacketBlockChange)
async def block_change_cb(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) @self.on_packet(PacketMultiBlockChange)
async def multi_block_change_cb(packet:PacketMultiBlockChange): async def multi_block_change_cb(packet:PacketMultiBlockChange):