trash slot blocks travel

This commit is contained in:
Tabby 2026-01-23 14:33:24 +11:00
parent 866d869756
commit 217efd9f9f
4 changed files with 20 additions and 17 deletions

View file

@ -3,6 +3,7 @@ extends Control
@export var ewaste_button : Button
@export var computer_button : Button
@export var crafting_inv : Inventory
@export var trash_inv : Inventory
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
@ -12,6 +13,7 @@ func _ready() -> void:
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
Locations.block_moving = crafting_inv.filled_slots() > 0
Locations.block_moving = trash_inv.filled_slots() > 0
#if crafting_inv.filled_slots() > 0:
#ewaste_button.disabled = true
#computer_button.disabled = true