mirror of
https://github.com/minetest-mods/maptools.git
synced 2025-06-30 14:20:22 +02:00
Update intllib support to avoid using deprecated functions
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user