mirror of
https://github.com/minetest-mods/maptools.git
synced 2025-06-30 22:30:21 +02:00
Merge branch 'master' of yunohost:nalc/maptools into merge-master
This commit is contained in:
@ -28,6 +28,7 @@ minetest.register_tool("maptools:pick_admin", {
|
||||
},
|
||||
damage_groups = {fleshy = 1000},
|
||||
},
|
||||
on_drop = maptools.drop_msg
|
||||
})
|
||||
|
||||
minetest.register_tool("maptools:pick_admin_with_drops", {
|
||||
@ -49,6 +50,7 @@ minetest.register_tool("maptools:pick_admin_with_drops", {
|
||||
},
|
||||
damage_groups = {fleshy = 1000},
|
||||
},
|
||||
on_drop = maptools.drop_msg
|
||||
})
|
||||
|
||||
minetest.register_on_punchnode(function(pos, node, puncher)
|
||||
@ -56,6 +58,6 @@ minetest.register_on_punchnode(function(pos, node, puncher)
|
||||
and minetest.get_node(pos).name ~= "air" then
|
||||
minetest.log("action", puncher:get_player_name() .. " digs " .. minetest.get_node(pos).name .. " at " .. minetest.pos_to_string(pos) .. " using an Admin Pickaxe.")
|
||||
minetest.remove_node(pos) -- The node is removed directly, which means it even works on non-empty containers and group-less nodes.
|
||||
nodeupdate(pos) -- Run node update actions like falling nodes.
|
||||
minetest.check_for_falling(pos) -- Run node update actions like falling nodes.
|
||||
end
|
||||
end)
|
||||
|
Reference in New Issue
Block a user