Describe the bug
Pet crash the game if player become invalid in multiplayer game
To Reproduce
Steps to reproduce the behavior:
have a friend join your game
your friend tame a pet
/admin and delete your friend player
Expected behavior
No Crash
Screenshots
Error message
Error while running event Satisfactorio::on_ai_command_completed (ID 117)
LuaPlayer API call when LuaPlayer was invalid.
stack traceback:
[C]: in function '__index'
__Satisfactorio__/scripts/creatures/lizard-doggo.lua:207: in function 'howFarIsMyOwner'
__Satisfactorio__/scripts/creatures/lizard-doggo.lua:250: in function 'handler'
__core__/lualib/event_handler.lua:47: in function <__core__/lualib/event_handler.lua:45>
Describe the bug Pet crash the game if player become invalid in multiplayer game
To Reproduce Steps to reproduce the behavior:
Expected behavior No Crash
Screenshots
Error message
Additional info Not an issue for normal game