summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
authorLNJ <git@lnj.li>2017-04-09 22:31:31 +0200
committerLNJ <git@lnj.li>2017-04-09 22:31:31 +0200
commit40230857add47aa20fe504f4610eddfa20745bfb (patch)
tree687c8f0c885ec20a0ed84ad4484a22b032e742a6 /init.lua
parent76d5e3ba9fb268135896cc5003ba7e6e16c36cd6 (diff)
Make 1x1, 1x2 and 2x2 drawers disableable
The new settings for the minetest.conf are: `drawers_disable_1x1` `drawers_disable_1x2` `drawers_disable_2x2`
Diffstat (limited to 'init.lua')
-rwxr-xr-xinit.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/init.lua b/init.lua
index 766f3e8..ac2ca27 100755
--- a/init.lua
+++ b/init.lua
@@ -43,6 +43,10 @@ else
end
+drawers.enable_1x1 = not core.setting_getbool("drawers_disable_1x1")
+drawers.enable_1x2 = not core.setting_getbool("drawers_disable_1x2")
+drawers.enable_2x2 = not core.setting_getbool("drawers_disable_2x2")
+
--
-- Load files
--