forked from cacklingfiend/lignumis
		
	Fix trees not being plantable on Nauvis with Alien Biomes active
This commit is contained in:
		
							parent
							
								
									6f2b12536c
								
							
						
					
					
						commit
						3919ba5f9b
					
				
					 1 changed files with 11 additions and 1 deletions
				
			
		|  | @ -4,3 +4,13 @@ local settings = data.raw.planet["lignumis"]["map_gen_settings"].autoplace_setti | ||||||
| settings["medium-rock"] = nil | settings["medium-rock"] = nil | ||||||
| settings["small-rock"] = nil | settings["small-rock"] = nil | ||||||
| settings["tiny-rock"] = nil | settings["tiny-rock"] = nil | ||||||
|  | 
 | ||||||
|  | -- Fix trees not being plantable on Alien Biomes tiles | ||||||
|  | local tile_restriction = data.raw["plant"]["tree-plant"].autoplace.tile_restriction | ||||||
|  | for _, tile in pairs(alien_biomes.all_tiles()) do | ||||||
|  |     if tile.tags and (table.contains(tile.tags, "dirt") or table.contains(tile.tags, "grass")) then | ||||||
|  |         if not table.contains(tile_restriction, tile.name) then | ||||||
|  |             table.insert(tile_restriction, tile.name) | ||||||
|  |         end | ||||||
|  |     end | ||||||
|  | end | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Simon Brodtmann
						Simon Brodtmann