summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
authorVanessa Ezekowitz <vanessaezekowitz@gmail.com>2016-11-28 14:46:42 -0500
committerVanessa Ezekowitz <vanessaezekowitz@gmail.com>2016-11-28 14:46:42 -0500
commite6c380d8c5c0451dd18402de642bcd8f9ad521db (patch)
treed9ef967ea04f05ea892448fa8564ca9246036cfd /init.lua
parent4a22f8e4dafecf1a8c3747cef235a1754e4a012d (diff)
allow user to disable bags
via minetest.conf --> unified_inventory_bags = false (default is to enable)
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/init.lua b/init.lua
index 76bc3ea..67bc56e 100644
--- a/init.lua
+++ b/init.lua
@@ -76,7 +76,10 @@ dofile(modpath.."/api.lua")
dofile(modpath.."/internal.lua")
dofile(modpath.."/callbacks.lua")
dofile(modpath.."/register.lua")
-dofile(modpath.."/bags.lua")
+
+if minetest.setting_getbool("unified_inventory_bags") ~= false then
+ dofile(modpath.."/bags.lua")
+end
dofile(modpath.."/item_names.lua")