Improve logging
This commit is contained in:
@@ -52,12 +52,12 @@ func _on_body_entered(body: Node3D) -> void:
|
||||
if not NetworkManager.owns_world():
|
||||
return
|
||||
if _combining or body == _pickable:
|
||||
SweetLogger.debug("other is our own pickable", [])
|
||||
SweetLogger.debug("other is our own pickable")
|
||||
return
|
||||
|
||||
var other := Helper.find_food_item(body)
|
||||
if not other:
|
||||
SweetLogger.debug("other is not a foodItem", [])
|
||||
SweetLogger.debug("other is not a foodItem")
|
||||
return
|
||||
|
||||
var result: PackedScene = RecipeManager.get_combination_result(_food_item.id, other.id)
|
||||
|
||||
@@ -9,10 +9,10 @@ func _ready() -> void:
|
||||
if not kitchen_scene:
|
||||
push_error("StationSpawner missing kitchen_scene")
|
||||
|
||||
SweetLogger.debug("initializing", [])
|
||||
SweetLogger.debug("initializing")
|
||||
|
||||
if NetworkManager.owns_world():
|
||||
SweetLogger.debug("initializing on server", [])
|
||||
SweetLogger.debug("initializing on server")
|
||||
# Later we will do procedural generation here.
|
||||
# For now we just load a scene.
|
||||
NetworkManager.call_deferred("spawn_item", kitchen_scene.resource_path, transform)
|
||||
|
||||
Reference in New Issue
Block a user