Merge pull request #663 from godot-escoria/turn_to_fix

Fix: wrong argument passed in turn_to error message
This commit is contained in:
balloonpopper
2023-01-10 14:49:11 +11:00
committed by GitHub

View File

@@ -47,15 +47,15 @@ func validate(arguments: Array):
if not escoria.object_manager.has(arguments[0]):
escoria.logger.error(
self,
"[%s]: The object to turn with global id %s was not found."
"[%s]: Cannot turn \"%s\". Object not found."
% [get_command_name(), arguments[0]]
)
return false
if not escoria.object_manager.has(arguments[1]):
escoria.logger.error(
self,
"[%s]: The object to turn towards with global id %s was not found."
% [get_command_name(), arguments[0]]
"[%s]: Cannot turn \"%s\" towards \"%s\". \"%s\" was not found."
% [get_command_name(), arguments[0], arguments[1] , arguments[1]]
)
return false
return true