Codebase list minetest-mod-nether / 92844b7
Add patch to update config api Julien Puydt 6 years ago
3 changed file(s) with 17 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
11
22 * Bump std-ver to 4.1.1.
33 * Bump d/watch to version 4.
4 * Add patch to update the config api.
45
56 -- Julien Puydt <julien.puydt@laposte.net> Thu, 05 Oct 2017 22:38:03 +0200
67
0 update_config_api.patch
0 Description: update the config api use
1 Author: Julien Puydt
2 Forwarded: https://github.com/PilzAdam/nether/issues/28
3
4 --- a/init.lua
5 +++ b/init.lua
6 @@ -503,7 +503,7 @@
7 on_place = function(stack, _, pt)
8 if pt.under and minetest.get_node(pt.under).name == "default:obsidian" then
9 local done = make_portal(pt.under)
10 - if done and not minetest.setting_getbool("creative_mode") then
11 + if done and not minetest.settings:get_bool("creative_mode") then
12 stack:take_item()
13 end
14 end