The server throws a KeyError when I try to break a block.
Trace back:
Exception happened during processing of request from ('127.0.0.1', 50289)
Traceback (most recent call last):
File "C:\Python27\lib\SocketServer.py", line 596, in process_request_thread
self.finish_request(request, client_address)
File "C:\Python27\lib\SocketServer.py", line 331, in finish_request
self.RequestHandlerClass(request, client_address, self)
File "C:\Python27\lib\SocketServer.py", line 652, in init
self.handle()
File "C:\Users\tript\Downloads\Minecraft-master\Minecraft-master\server.py", line 59, in handle
self.loop()
File "C:\Users\tript\Downloads\Minecraft-master\Minecraft-master\server.py", line 104, in loop
world.remove_block(struct.unpack("iii", positionbytes), sync=False)
File "C:\Users\tript\Downloads\Minecraft-master\Minecraft-master\world_server.py", line 96, in remove_block
del self[position]
File "C:\Users\tript\Downloads\Minecraft-master\Minecraft-master\world_server.py", line 61, in delitem
super(WorldServer, self).delitem(position)
KeyError: (-2, 39, 15)
The server throws a
KeyError
when I try to break a block. Trace back: Exception happened during processing of request from ('127.0.0.1', 50289) Traceback (most recent call last): File "C:\Python27\lib\SocketServer.py", line 596, in process_request_thread self.finish_request(request, client_address) File "C:\Python27\lib\SocketServer.py", line 331, in finish_request self.RequestHandlerClass(request, client_address, self) File "C:\Python27\lib\SocketServer.py", line 652, in init self.handle() File "C:\Users\tript\Downloads\Minecraft-master\Minecraft-master\server.py", line 59, in handle self.loop() File "C:\Users\tript\Downloads\Minecraft-master\Minecraft-master\server.py", line 104, in loop world.remove_block(struct.unpack("iii", positionbytes), sync=False) File "C:\Users\tript\Downloads\Minecraft-master\Minecraft-master\world_server.py", line 96, in remove_block del self[position] File "C:\Users\tript\Downloads\Minecraft-master\Minecraft-master\world_server.py", line 61, in delitem super(WorldServer, self).delitem(position) KeyError: (-2, 39, 15)