forked from cacklingfiend/lignumis
		
	Possibly fix problems with Wooden rocket silo in remote view
This commit is contained in:
		
							parent
							
								
									c7885afe34
								
							
						
					
					
						commit
						24a33546d5
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -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
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue