mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2025-12-16 15:15:27 +01:00
Removed falling protection inhibiting the engine
- All nodes inhibited now produce logs and are compatible with other mods
This commit is contained in:
@@ -114,27 +114,6 @@ function on_dignode(p, node)
|
||||
end
|
||||
minetest.register_on_dignode(on_dignode)
|
||||
|
||||
--
|
||||
-- Rewrite of all item you need
|
||||
--
|
||||
function add_falling_protect_item(named)
|
||||
minetest.override_item(named, {
|
||||
on_place = function(itemstack, placer, pointed_thing)
|
||||
if not pointed_thing.type == "node" then
|
||||
return
|
||||
end
|
||||
local pn = placer:get_player_name()
|
||||
if minetest.is_protected(pointed_thing.above, pn) then
|
||||
return
|
||||
end
|
||||
minetest.add_node(pointed_thing.above, {name=itemstack:get_name()})
|
||||
local meta = minetest.get_meta(pointed_thing.above)
|
||||
meta:set_string("owner", pn)
|
||||
nodeupdate(pointed_thing.above)
|
||||
end
|
||||
})
|
||||
end
|
||||
|
||||
--
|
||||
-- Protected Area
|
||||
--
|
||||
|
||||
Reference in New Issue
Block a user