mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2025-06-28 06:11:47 +02: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
|
||||
--
|
||||
|
@ -8,12 +8,6 @@ PROTECT_LAVA_REALTIME = 0 -- 0 for OFF , 1 for ON
|
||||
-- Protect in realtime the water flowing (can be very slow, because some water in this world :p)
|
||||
PROTECT_WATER_REALTIME = 0 -- 0 for OFF , 1 for ON
|
||||
|
||||
--
|
||||
-- List of your node need to rewirte
|
||||
--
|
||||
add_falling_protect_item("default:sand")
|
||||
add_falling_protect_item("default:gravel")
|
||||
|
||||
add_protected_bukket_liquid("bucket:bucket_lava","default:lava_source") -- lava bukket
|
||||
add_protected_bukket_liquid("bucket:bucket_water","default:water_source") -- water bukket
|
||||
|
||||
|
Reference in New Issue
Block a user