|  |  | @ -175,7 +175,7 @@ module DFHack | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |         # return the RegionMapEntry (from designation.biome) |  |  |  |         # return the RegionMapEntry (from designation.biome) | 
			
		
	
		
		
			
				
					
					|  |  |  |         def region_map_entry |  |  |  |         def region_map_entry | 
			
		
	
		
		
			
				
					
					|  |  |  |             b = designation.biome |  |  |  |             b = mapblock.region_offset[designation.biome] | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |             wd = df.world.world_data |  |  |  |             wd = df.world.world_data | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |             # region coords + [[-1, -1], [0, -1], ..., [1, 1]][b] |  |  |  |             # region coords + [[-1, -1], [0, -1], ..., [1, 1]][b] | 
			
		
	
	
		
		
			
				
					|  |  | @ -231,11 +231,23 @@ module DFHack | 
			
		
	
		
		
			
				
					
					|  |  |  |                 mat_index = df.world.world_data.region_details[idx].lava_stone |  |  |  |                 mat_index = df.world.world_data.region_details[idx].lava_stone | 
			
		
	
		
		
			
				
					
					|  |  |  |                 MaterialInfo.new(0, mat_index) |  |  |  |                 MaterialInfo.new(0, mat_index) | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             when :FEATURE | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 if designation.feature_local | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                     mx = mapblock.region_pos.x | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                     my = mapblock.region_pos.y | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                     df.decode_mat(df.world.world_data.feature_map[mx/16][my/16].features.feature_init[mx%16][my%16][mapblock.local_feature]) | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 elsif designation.feature_global | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                     df.decode_mat(df.world.world_data.underground_regions[mapblock.global_feature].feature_init) | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 else | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                     MaterialInfo.new(-1, -1) | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 end | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             when :FROZEN_LIQUID | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 MaterialInfo.new('WATER') | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |             # TODO |  |  |  |             # TODO | 
			
		
	
		
		
			
				
					
					|  |  |  |             #when :PLANT |  |  |  |             #when :PLANT | 
			
		
	
		
		
			
				
					
					|  |  |  |             #when :GRASS_DARK, :GRASS_DEAD, :GRASS_DRY, :GRASS_LIGHT |  |  |  |             #when :GRASS_DARK, :GRASS_DEAD, :GRASS_DRY, :GRASS_LIGHT | 
			
		
	
		
		
			
				
					
					|  |  |  |             #when :FEATURE |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             #when :FROZEN_LIQUID |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             #when :CONSTRUCTION |  |  |  |             #when :CONSTRUCTION | 
			
		
	
		
		
			
				
					
					|  |  |  |             else    # AIR ASHES BROOK CAMPFIRE DRIFTWOOD FIRE HFS MAGMA POOL RIVER |  |  |  |             else    # AIR ASHES BROOK CAMPFIRE DRIFTWOOD FIRE HFS MAGMA POOL RIVER | 
			
		
	
		
		
			
				
					
					|  |  |  |                 MaterialInfo.new(-1, -1) |  |  |  |                 MaterialInfo.new(-1, -1) | 
			
		
	
	
		
		
			
				
					|  |  | 
 |