Fixed Issue with settings and crafting

This commit is contained in:
Apollo 2022-01-30 16:12:44 -05:00
parent 2269999480
commit bd2d616f6a
3 changed files with 10 additions and 3 deletions

View File

@ -11,7 +11,7 @@ elseif chest2.GAMEMODE == "MCL2" or chest2.GAMEMODE == "MCL5" then
diamond_block = "mcl_core:diamondblock"
end
if chest2.settings.craft_chest then
if chest2.settings.craft_chest == true then
minetest.register_craft({
output = "chest2:chest 1",
recipe = {
@ -22,7 +22,7 @@ if chest2.settings.craft_chest then
})
end
if chest2.settings.craft_remote then
if chest2.settings.craft_remote == true then
minetest.register_craft({
output = "chest2:remote_off 1",
recipe = {

View File

@ -28,10 +28,11 @@ else
chest2.GAMEMODE = "???"
end
dofile(chest2.modpath.."/settings.lua") -- Settings
dofile(chest2.modpath.."/tool_belt.lua") -- Utility functions
dofile(chest2.modpath.."/settings.lua") -- Settings
dofile(chest2.modpath.."/register.lua") -- The Chest2
dofile(chest2.modpath.."/crafting.lua") -- Crafting
chest2.tools.log("Version: "..chest2.VERSION)
chest2.tools.log("Gamemode: "..chest2.GAMEMODE)

View File

@ -24,3 +24,9 @@ if settings.craft_remote == nil then
settings.craft_remote = false
minetest.settings:set_bool("chest2.craft_remote", false)
end
--[[
chest2.tools.log("chest2.max_pages = "..tostring(settings.pages))
chest2.tools.log("chest2.craft_chest = "..tostring(settings.craft_chest))
chest2.tools.log("chest2.craft_remote = "..tostring(settings.craft_remote))
]]