Issue #1 resolved

KeyError while moving around.

Kelketek
created an issue
Traceback (most recent call last):
  File "main.py", line 672, in <module>
    event_loop()
  File "main.py", line 117, in event_loop
    proc_events()
  File "main.py", line 113, in proc_events
    proc_event(event)
  File "main.py", line 109, in proc_event
    handler[1](event)
  File "main.py", line 131, in invoke
    callback(event)
  File "main.py", line 191, in <lambda>
    lambda a: proc_event(pygame.event.Event(AppEvent.INPUT_DIRECTION, direction=Direction.NORTH))
  File "main.py", line 109, in proc_event
    handler[1](event)
  File "main.py", line 131, in invoke
    callback(event)
  File "main.py", line 145, in <lambda>
    stop = on_event(predicate, lambda a: (callback(a), stop()))
  File "main.py", line 343, in <lambda>
    on_event_once(lambda a: a.type == AppEvent.INPUT_DIRECTION, lambda a: remove_block(bubble))
  File "main.py", line 292, in remove_block
    position_to_blocklist[block[0]].remove(block)
KeyError: (3, 5, 1)

This issue is a blocker because it has to do with blocks and their removal.

Comments (1)

  1. Log in to comment