Add some quest_status restrictions

This commit is contained in:
GreenComfyTea
2023-08-06 14:27:23 +03:00
parent c4b7f6d195
commit 0eac453bf4
2 changed files with 7 additions and 1 deletions

View File

@@ -456,6 +456,11 @@ function this.update_myself_position()
return;
end
if quest_status.flow_state == quest_status.flow_states.NONE
or quest_status.flow_state == quest_status.flow_states.CUTSCENE then
return;
end
local master_player = find_master_player_method:call(singletons.player_manager);
if master_player == nil then
error_handler.report("players.update_myself_position", "Failed to Access Data: master_player");