player.screen reporting Unknown position: screen
Posted: Sat Nov 16, 2019 11:22 pm
Someone's reported a bug with my mod that I can't duplicate. It's happening when I try to access the screen property for the current player.
local player = game.players[event.player_index]
...
local function get_gui_root(player)
-- return player.gui.left
return player.gui.screen
end
I suppose they could be on an older version of Factorio. Any other reason that error would happen?
I can't duplicate the issue myself.
local player = game.players[event.player_index]
...
local function get_gui_root(player)
-- return player.gui.left
return player.gui.screen
end
I suppose they could be on an older version of Factorio. Any other reason that error would happen?
I can't duplicate the issue myself.