[moreblocks] Update to Git patch b52a403:

For compatiblity with stable server build.

https://github.com/AntumDeluge/mtmod-moreblocks/tree/b52a403
master
AntumDeluge 2017-05-15 18:12:20 -07:00
parent fa28e6edb3
commit 34d8128778
6 changed files with 6 additions and 20 deletions

View File

@ -518,7 +518,7 @@ The game includes the mods from the default [minetest_game](https://github.com/m
[patch.mobf_core]: https://github.com/AntumDeluge/mtmp-mobf_core/tree/e6fa3b7
[patch.mobs_goblins]: https://github.com/AntumDeluge/mtmod-mobs_goblins/tree/8813304
[patch.mobs_redo]: https://github.com/AntumDeluge/mtmod-mobs_redo/tree/58e123a
[patch.moreblocks]: https://github.com/AntumDeluge/mtmod-moreblocks/tree/786f9e4
[patch.moreblocks]: https://github.com/AntumDeluge/mtmod-moreblocks/tree/b52a403
[patch.moremesecons]: https://github.com/AntumDeluge/mtmp-moremesecons/tree/cae948e
[patch.moreores]: https://github.com/AntumDeluge/mtmod-moreores/tree/8b874f6
[patch.mydoors]: https://github.com/AntumDeluge/mtmp-mydoors/tree/e36c9d1

View File

@ -1,14 +0,0 @@
unused_args = false
allow_defined_top = true
read_globals = {
"DIR_DELIM",
"minetest", "core",
"dump",
"vector", "nodeupdate",
"VoxelManip", "VoxelArea",
"PseudoRandom", "ItemStack",
"intllib",
"default",
}

View File

@ -8,7 +8,7 @@ Licensed under the zlib license. See LICENSE.md for more information.
moreblocks.config = {}
local function getbool_default(setting, default)
local value = minetest.settings:get_bool(setting)
local value = minetest.setting_getbool(setting)
if value == nil then
value = default
end
@ -21,7 +21,7 @@ local function setting(settingtype, name, default)
getbool_default("moreblocks." .. name, default)
else
moreblocks.config[name] =
minetest.settings:get("moreblocks." .. name) or default
minetest.setting_get("moreblocks." .. name) or default
end
end

View File

@ -454,7 +454,7 @@ minetest.register_craft({
}
})
if minetest.settings:get_bool("moreblocks.circular_saw_crafting") ~= false then -- “If nil or true then”
if minetest.setting_getbool("moreblocks.circular_saw_crafting") ~= false then -- “If nil or true then”
minetest.register_craft({
output = "moreblocks:circular_saw",
recipe = {

View File

@ -28,6 +28,6 @@ dofile(modpath .. "/redefinitions.lua")
dofile(modpath .. "/crafting.lua")
dofile(modpath .. "/aliases.lua")
if minetest.settings:get_bool("log_mods") then
if minetest.setting_getbool("log_mods") then
minetest.log("action", S("[moreblocks] loaded."))
end

View File

@ -15,7 +15,7 @@ stairsplus.expect_infinite_stacks = false
stairsplus.shapes_list = {}
if not minetest.get_modpath("unified_inventory")
and minetest.settings:get_bool("creative_mode") then
and minetest.setting_getbool("creative_mode") then
stairsplus.expect_infinite_stacks = true
end