From e44b0f825e7acdf16a53c691f704ebe2836f5a35 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Tue, 3 Oct 2023 02:36:38 +0200 Subject: [PATCH] Fix item converter behaving like a stack instead of a queue --- converters/item_converter/item_converter.gd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/converters/item_converter/item_converter.gd b/converters/item_converter/item_converter.gd index 1a316f6..ed6571f 100644 --- a/converters/item_converter/item_converter.gd +++ b/converters/item_converter/item_converter.gd @@ -49,7 +49,7 @@ func _on_gold_collector_collected(body: RigidBody2D): func try_produce(): if stored_gold >= required_gold: - var hue = gem_hue_ready.pop_back() + var hue = gem_hue_ready.pop_front() if hue: stored_gold -= required_gold gem_hue_stored.append(hue)