1
Fork 0
mirror of https://github.com/Steffo99/swear-jar.git synced 2024-11-22 07:44:17 +00:00

Fix item converter behaving like a stack instead of a queue

This commit is contained in:
Steffo 2023-10-03 02:36:38 +02:00
parent 1f84586878
commit e44b0f825e
Signed by: steffo
GPG key ID: 2A24051445686895

View file

@ -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)