From fa4a7817632076087a652a75c4c32bdf710cb707 Mon Sep 17 00:00:00 2001 From: Peridexis Errant Date: Wed, 28 Jan 2015 09:33:26 +1100 Subject: [PATCH] Fix hfs-pit feature search Via notfood, here: http://www.bay12forums.com/smf/index.php?topic=139553.msg5984896#msg5984896 --- NEWS | 1 + scripts/hfs-pit.lua | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index 11bf20509..78ab89f5e 100644 --- a/NEWS +++ b/NEWS @@ -1,6 +1,7 @@ DFHack Future Internals Fixes + hfs-pit should work now New Plugins New Scripts New Tweaks diff --git a/scripts/hfs-pit.lua b/scripts/hfs-pit.lua index 9592d0a31..7261b53d7 100644 --- a/scripts/hfs-pit.lua +++ b/scripts/hfs-pit.lua @@ -20,7 +20,7 @@ wallOff = tonumber(args[2]) stairs = tonumber(args[3]) --Get the layer of the underworld -for index,value in ipairs(df.global.world.cur_savegame.map_features) do +for index,value in ipairs(df.global.world.features.map_features) do local featureType=value:getType() if featureType==9 then --Underworld underworldLayer = value.layer