forked from cacklingfiend/lignumis
		
	Add fix for duplicate ready rocket silo
This commit is contained in:
		
							parent
							
								
									0353f91144
								
							
						
					
					
						commit
						17c2795b3d
					
				
					 1 changed files with 3 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -106,7 +106,9 @@ local function on_silo_mined(event)
 | 
			
		|||
    local player = game.get_player(event.player_index)
 | 
			
		||||
    for i, entry in pairs(storage.rocket_silos) do
 | 
			
		||||
        if entry.fake_silo == fake_silo then
 | 
			
		||||
            player.mine_entity(entry.real_silo, true)
 | 
			
		||||
            if entry.real_silo.valid then
 | 
			
		||||
                player.mine_entity(entry.real_silo, true)
 | 
			
		||||
            end
 | 
			
		||||
            table.remove(storage.rocket_silos, i)
 | 
			
		||||
            break
 | 
			
		||||
        end
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue