mirror of
https://github.com/Steffo99/swear-jar.git
synced 2024-11-25 17:14:20 +00:00
Fix item converter behaving like a stack instead of a queue
This commit is contained in:
parent
1f84586878
commit
e44b0f825e
1 changed files with 1 additions and 1 deletions
|
@ -49,7 +49,7 @@ func _on_gold_collector_collected(body: RigidBody2D):
|
||||||
|
|
||||||
func try_produce():
|
func try_produce():
|
||||||
if stored_gold >= required_gold:
|
if stored_gold >= required_gold:
|
||||||
var hue = gem_hue_ready.pop_back()
|
var hue = gem_hue_ready.pop_front()
|
||||||
if hue:
|
if hue:
|
||||||
stored_gold -= required_gold
|
stored_gold -= required_gold
|
||||||
gem_hue_stored.append(hue)
|
gem_hue_stored.append(hue)
|
||||||
|
|
Loading…
Reference in a new issue