add settings for features

This commit is contained in:
NatureFreshMilk 2019-08-19 12:40:50 +02:00
parent a5b613f1e0
commit 1ded3063f4
2 changed files with 20 additions and 4 deletions

View File

@ -15,6 +15,15 @@ Fully compatible with Skyblock
Mod Dependencies: unified_inventory
Settings
=======
Features can be toggled with the following settings (true per default):
* `unified_inventory_plus.enable_craft_all`
* `unified_inventory_plus.enable_craft_organize`
* `unified_inventory_plus.enable_craft_rotate`
License
=======

View File

@ -37,7 +37,14 @@ unified_inventory_plus = {
dofile(modpath.."/functions.lua")
-- Functionalities are independants.
-- Comment the following lines to disable those you don't want
dofile(modpath.."/craft_all.lua")
dofile(modpath.."/craft_organize.lua")
dofile(modpath.."/craft_rotate.lua")
if minetest.settings:get_bool("unified_inventory_plus.enable_craft_all", true) then
dofile(modpath.."/craft_all.lua")
end
if minetest.settings:get_bool("unified_inventory_plus.enable_craft_organize", true) then
dofile(modpath.."/craft_organize.lua")
end
if minetest.settings:get_bool("unified_inventory_plus.enable_craft_rotate", true) then
dofile(modpath.."/craft_rotate.lua")
end