diff options
Diffstat (limited to 'Archipelago/client.gd')
-rw-r--r-- | Archipelago/client.gd | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Archipelago/client.gd b/Archipelago/client.gd index 9f15506..068f300 100644 --- a/Archipelago/client.gd +++ b/Archipelago/client.gd | |||
@@ -588,16 +588,16 @@ func processItem(item, index, from, flags): | |||
588 | if _item_id_to_name.has(item): | 588 | if _item_id_to_name.has(item): |
589 | item_name = _item_id_to_name[item] | 589 | item_name = _item_id_to_name[item] |
590 | 590 | ||
591 | if gamedata.door_ids_by_item_id.has(item_name): | 591 | if gamedata.door_ids_by_item_id.has(int(item)): |
592 | var doorsNode = get_tree().get_root().get_node("Spatial/Doors") | 592 | var doorsNode = get_tree().get_root().get_node("Spatial/Doors") |
593 | for door_id in gamedata.door_ids_by_item_id[item_name]: | 593 | for door_id in gamedata.door_ids_by_item_id[int(item)]: |
594 | doorsNode.get_node(door_id).openDoor() | 594 | doorsNode.get_node(door_id).openDoor() |
595 | 595 | ||
596 | if gamedata.painting_ids_by_item_id.has(item_name): | 596 | if gamedata.painting_ids_by_item_id.has(int(item)): |
597 | var real_parent_node = get_tree().get_root().get_node("Spatial/Decorations/Paintings") | 597 | var real_parent_node = get_tree().get_root().get_node("Spatial/Decorations/Paintings") |
598 | var fake_parent_node = get_tree().get_root().get_node_or_null("Spatial/AP_Paintings") | 598 | var fake_parent_node = get_tree().get_root().get_node_or_null("Spatial/AP_Paintings") |
599 | 599 | ||
600 | for painting_id in gamedata.painting_ids_by_item_id[item_name]: | 600 | for painting_id in gamedata.painting_ids_by_item_id[int(item)]: |
601 | var painting_node = real_parent_node.get_node_or_null(painting_id) | 601 | var painting_node = real_parent_node.get_node_or_null(painting_id) |
602 | if painting_node != null: | 602 | if painting_node != null: |
603 | painting_node.movePainting() | 603 | painting_node.movePainting() |