Update intllib support to avoid using deprecated functions

This commit is contained in:
Hugo Locurcio
2019-03-03 20:11:10 +01:00
parent 8bb6f0fece
commit 199180ee80
7 changed files with 86 additions and 43 deletions

View File

@ -5,7 +5,7 @@ Copyright © 2012-2019 Hugo Locurcio and contributors.
Licensed under the zlib license. See LICENSE.md for more information.
--]]
local S = maptools.intllib
local S = maptools.S
maptools.creative = maptools.config["hide_from_creative_inventory"]
@ -66,9 +66,9 @@ minetest.register_on_punchnode(function(pos, node, puncher)
" using an Admin Pickaxe."
)
-- The node is removed directly, which means it even works
-- on non-empty containers and group-less nodes.
-- on non-empty containers and group-less nodes
minetest.remove_node(pos)
-- Run node update actions like falling nodes.
-- Run node update actions like falling nodes
minetest.check_for_falling(pos)
end
end)