Updated dinner table code to allow for item in hold
This commit is contained in:
parent
7c31d9491a
commit
1b389fc07a
@ -9,7 +9,10 @@ onready var item_holder = $"%item_holder"
|
||||
func _ready():
|
||||
assert(!all_food.empty())
|
||||
item_holder.add_enabled = true
|
||||
item_holder.remove_enabled = true
|
||||
if item_holder.item_in_hold != null:
|
||||
_on_item_holder_item_changed(item_holder.item_in_hold)
|
||||
else:
|
||||
item_holder.remove_enabled = true
|
||||
|
||||
func on_player_interact(player) -> bool:
|
||||
if food_to_consume == null:
|
||||
|
Loading…
x
Reference in New Issue
Block a user