diff --git a/README.md b/README.md index 76da3a07..183c5988 100644 --- a/README.md +++ b/README.md @@ -41,7 +41,7 @@ The game includes the mods from the default [minetest_game](https://github.com/m * [trash_can][] ([MIT][lic.trash_can]) -- version: [5fd3df7 Git][ver.trash_can] *2016-01-14* ([patched][patch.trash_can]) * inventory/ * [bags][] ([BSD 3-Clause][lic.bags]) -- version: [f17d829 Git][ver.bags] *2015-10-11* ([patched][patch.bags]) - * [inventory_plus][] ([BSD 3-Clause][lic.inventory_plus]) -- version: [a978b47 Git][ver.inventory_plus] *2016-03-31* + * [inventory_plus][] ([BSD 3-Clause][lic.inventory_plus]) -- version: [a978b47 Git][ver.inventory_plus] *2016-03-31* ([patched][patch.inventory_plus]) * lighting/ * [ilights][] ([CC BY-SA][lic.ccbysa]) -- version [b1f7ccf Git][ver.ilights] *2017-03-18* * walking_light ([petermalone fork][walking_light]) ([WTFPL / CC BY-SA][lic.walking_light]) -- version: [b9de302 Git][ver.walking_light] *2016-09-09* ([patched][patch.walking_light]) @@ -496,6 +496,7 @@ The game includes the mods from the default [minetest_game](https://github.com/m [patch.homedecor]: https://github.com/AntumDeluge/mtmp-homedecor/tree/4d6f0c0 [patch.hovercraft]: https://github.com/AntumDeluge/mtmod-hovercraft/tree/96ad3b4 [patch.hud]: https://github.com/AntumDeluge/mtmod-hud/tree/6846e20 +[patch.inventory_plus]: https://github.com/AntumDeluge/mtmp-inventory_plus/tree/3c81158 [patch.kpgmobs]: https://github.com/AntumDeluge/mtmod-kpgmobs/tree/0773e37 [patch.mesecons]: https://github.com/AntumDeluge/mtmp-mesecons/tree/32a4823 [patch.minetest]: https://github.com/AntumDeluge/mtgame-minetest/tree/914595e diff --git a/mods/inventory/inventory_plus/init.lua b/mods/inventory/inventory_plus/init.lua index 71922de7..04a77a16 100644 --- a/mods/inventory/inventory_plus/init.lua +++ b/mods/inventory/inventory_plus/init.lua @@ -17,7 +17,7 @@ inventory_plus = {} inventory_plus.buttons = {} -- default inventory page -inventory_plus.default = minetest.setting_get("inventory_default") or "craft" +inventory_plus.default = minetest.settings:get("inventory_default") or "craft" -- register_button inventory_plus.register_button = function(player, name, label) @@ -39,7 +39,7 @@ inventory_plus.set_inventory_formspec = function(player, formspec) return end - if minetest.setting_getbool("creative_mode") then + if minetest.settings:get_bool("creative_mode") then -- if creative mode is on then wait a bit minetest.after(0.01,function() @@ -130,7 +130,7 @@ minetest.register_on_joinplayer(function(player) inventory_plus.register_button(player,"craft", "Craft") - if minetest.setting_getbool("creative_mode") then + if minetest.settings:get_bool("creative_mode") then inventory_plus.register_button(player, "creative_prev", "Creative") end