diff options
author | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2017-05-18 05:44:03 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-18 05:44:03 -0400 |
commit | 347d6ffaa45e085148f703443d7c139587404090 (patch) | |
tree | 51b28f53809ea64792053cf10fbf06ebfa0cd12e | |
parent | 147057040575d7979a444aacd9be9abc9644156a (diff) | |
parent | a33f58df61abe5c998320cab78e26b260d0fde33 (diff) |
Merge pull request #14 from AntumDeluge/settings
Replace deprecated methods
-rw-r--r-- | init.lua | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -13,7 +13,7 @@ local enable_colored_metal_signs = true -- CWz's keyword interact mod uses this setting. -local current_keyword = minetest.setting_get("interact_keyword") or "iaccept" +local current_keyword = minetest.settings:get("interact_keyword") or "iaccept" signs_lib = {} screwdriver = screwdriver or {} @@ -165,7 +165,7 @@ end -- infinite stacks -if not minetest.setting_getbool("creative_mode") then +if not minetest.settings:get_bool("creative_mode") then signs_lib.expect_infinite_stacks = false else signs_lib.expect_infinite_stacks = true @@ -793,7 +793,7 @@ minetest.register_node(":locked_sign:sign_wall_locked", { local meta = minetest.get_meta(pos) local owner = meta:get_string("owner") local pname = sender:get_player_name() or "" - if pname ~= owner and pname ~= minetest.setting_get("name") + if pname ~= owner and pname ~= minetest.settings:get("name") and not minetest.check_player_privs(pname, {sign_editor=true}) then return end @@ -806,7 +806,7 @@ minetest.register_node(":locked_sign:sign_wall_locked", { local meta = minetest.get_meta(pos) local owner = meta:get_string("owner") local pname = player:get_player_name() - return pname == owner or pname == minetest.setting_get("name") + return pname == owner or pname == minetest.settings:get("name") or minetest.check_player_privs(pname, {sign_editor=true}) end, on_rotate = signs_lib.wallmounted_rotate @@ -1158,6 +1158,6 @@ if enable_colored_metal_signs then }) end -if minetest.setting_get("log_mods") then +if minetest.settings:get("log_mods") then minetest.log("action", S("signs loaded")) end |