Reafactoring Recipemanager
This commit is contained in:
@@ -60,7 +60,7 @@ func _on_body_entered(body: Node3D) -> void:
|
||||
print("CombinableItem _on_body_entered: other is not a foodItem")
|
||||
return
|
||||
|
||||
var result: PackedScene = RecipeManager.get_combination(_food_item.id, other.id)
|
||||
var result: PackedScene = RECIPE_MANAGER.get_combination_result(_food_item.id, other.id)
|
||||
if not result:
|
||||
print("CombinableItem _on_body_entered: There is no recipe for %s + %s" % [_food_item.id, other.id])
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user