1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2025-06-28 14:16:06 +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:
LeMagnesium
2015-04-22 18:09:34 +02:00
parent 76eae44363
commit 10428fbcfb
8 changed files with 0 additions and 503 deletions

View File

@ -7,23 +7,6 @@ minetest.register_node("seawrecks:woodship", {
is_ground_content = true,
groups = {crumbly=3, falling_node=1, sand=1, soil=1, not_in_creative_inventory=1},
sounds = default.node_sound_sand_defaults(),
on_place = function(itemstack, placer, pointed_thing)
if not pointed_thing.type == "node" then
return itemstack
end
local pn = placer:get_player_name()
if minetest.is_protected(pointed_thing.above, pn) then
return itemstack
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)
if not minetest.setting_getbool("creative_mode") then
itemstack:take_item()
end
return itemstack
end
})
minetest.register_node("seawrecks:uboot", {