Updated dinner table code to allow for item in hold

This commit is contained in:
akshay 2022-08-20 04:15:24 -04:00
parent 7c31d9491a
commit 1b389fc07a

View File

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