Add patch to update config api
Julien Puydt
6 years ago
1 | 1 |
|
2 | 2 |
* Bump std-ver to 4.1.1.
|
3 | 3 |
* Bump d/watch to version 4.
|
|
4 |
* Add patch to update the config api.
|
4 | 5 |
|
5 | 6 |
-- Julien Puydt <julien.puydt@laposte.net> Thu, 05 Oct 2017 22:38:03 +0200
|
6 | 7 |
|
|
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
|