Possibly fix problems with Wooden rocket silo in remote view

This commit is contained in:
Simon Brodtmann 2025-03-12 20:24:51 +01:00
parent c7885afe34
commit 24a33546d5

View file

@ -64,12 +64,13 @@ local function on_gui_opened(event)
if not entity or not entity.valid then return end
if entity.name ~= "provisional-rocket-silo-ready" then return end
local player = game.get_player(event.player_index)
if player.controller_type ~= defines.controllers.character then return end
if player.gui.relative["provisional-rocket-silo-relative-frame"] then
player.gui.relative["provisional-rocket-silo-relative-frame"].destroy()
end
if player.controller_type ~= defines.controllers.character then return end
build_gui(player, entity)
end