forked from cacklingfiend/lignumis
		
	Fix potential crash when escaping to Nauvis
This commit is contained in:
		
							parent
							
								
									eb6b0d6384
								
							
						
					
					
						commit
						e4fdd67bdf
					
				
					 1 changed files with 5 additions and 3 deletions
				
			
		|  | @ -73,10 +73,12 @@ local function transit_player(player_index) | ||||||
|     -- Give the player the content of the rocket |     -- Give the player the content of the rocket | ||||||
|     if transition.rocket_entry.rocket_content then |     if transition.rocket_entry.rocket_content then | ||||||
|         local inventory = player.get_main_inventory() |         local inventory = player.get_main_inventory() | ||||||
|         for _, item in pairs(transition.rocket_entry.rocket_content) do |         if inventory then | ||||||
|             inventory.insert(item) |             for _, item in pairs(transition.rocket_entry.rocket_content) do | ||||||
|  |                 inventory.insert(item) | ||||||
|  |             end | ||||||
|  |             inventory.sort_and_merge() | ||||||
|         end |         end | ||||||
|         inventory.sort_and_merge() |  | ||||||
|     end |     end | ||||||
|     table.remove(storage.rocket_silos, transition.rocket_entry_index) |     table.remove(storage.rocket_silos, transition.rocket_entry_index) | ||||||
| end | end | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Simon Brodtmann
						Simon Brodtmann