I have a mod that basically uses a keyboard shortcut for opening entities, the control.lua is like this:
Code: Select all
local function onKey(event)
local player = game.get_player(event.player_index)
local entity = player.selected
if entity and entity.valid then
player.opened = entity
end
end
script.on_event("test-keybind", onKey)
Because it only happens with non-hosting clients maybe is an issue with the latency hiding system? I know that in Factorio 1.1 this worked. A minimal mod is attached.