fixed the issue where enemies could walk over a gap if it wasnt on a pathfinding node

This commit is contained in:
2024-03-29 21:58:40 +11:00
parent 3c28999cd9
commit 62d0dc0130
40 changed files with 205 additions and 138 deletions

View File

@ -49,7 +49,7 @@ func networked_add(value: int) -> void:
@rpc("reliable", "any_peer")
func networked_remove_at(value: int) -> void:
var item: Item = contents.keys[value]
var item: Item = contents.keys()[value]
contents[item] -= 1
if contents[item] == 0:
contents.erase(item)