From 6bc3371d0d930eb239ef4fdfe9cda230d3f83274 Mon Sep 17 00:00:00 2001 From: Brett O'Donnell Date: Sat, 29 Sep 2012 23:05:25 +0930 Subject: [PATCH] fix var for linux users --- towntest_chest/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/towntest_chest/init.lua b/towntest_chest/init.lua index 6476608..c036702 100644 --- a/towntest_chest/init.lua +++ b/towntest_chest/init.lua @@ -21,7 +21,7 @@ towntest_chest.npc = {} towntest_chest.get_files = function(size) local directory = minetest.get_modpath("towntest_chest").."/buildings" local output - if os.getenv('home')~=nil then + if os.getenv('HOME')~=nil then output = io.execute('ls -a "'..directory..'/*.we"') -- linux/mac else output = io.popen('dir "'..directory..'\\*.we" /b') -- windows