From 3d7661e7e9edce233c5edf175829bc689d018f1a Mon Sep 17 00:00:00 2001 From: jj Date: Mon, 14 Oct 2013 00:01:26 +0200 Subject: [PATCH] ruby: fix map tile material reading --- plugins/ruby/map.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/ruby/map.rb b/plugins/ruby/map.rb index 647a52849..934f37659 100644 --- a/plugins/ruby/map.rb +++ b/plugins/ruby/map.rb @@ -175,7 +175,7 @@ module DFHack # return the RegionMapEntry (from designation.biome) def region_map_entry - b = designation.biome + b = mapblock.region_offset[designation.biome] wd = df.world.world_data # region coords + [[-1, -1], [0, -1], ..., [1, 1]][b]