crash fix

This commit is contained in:
Booklordofthedings 2024-08-19 18:33:47 +02:00
parent b6375e04c8
commit efd5738f70
6 changed files with 53 additions and 9 deletions

View file

@ -29,7 +29,7 @@ func activate_plate():
print("wird aktiviert")
if not is_activated:
is_activated = true
if laser:
if laser and weakref(laser).get_ref():
laser.queue_free()
# TODO: fix error when called again