mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2024-12-24 17:50:37 +01:00
Drop any node that may be placed in the top part of a door
This commit is contained in:
parent
f4194f14ba
commit
3ebb5b1f55
@ -448,6 +448,14 @@ function homedecor.flip_door(pos, node, player, name, side, isClosed)
|
||||
local rside = nil
|
||||
local nfdir = nil
|
||||
local ofdir = node.param2 or 0
|
||||
-- //MFF_BEGIN(Mg|09/06/15)
|
||||
local upnode = minetest.get_node({x=pos.x, y=pos.y+1, z=pos.z}).name
|
||||
|
||||
if upnode ~= "air" then
|
||||
minetest.add_item(pos, upnode)
|
||||
end
|
||||
-- //MFF_END(Mg|06/09/15)
|
||||
|
||||
if side == "left" then
|
||||
rside = "right"
|
||||
nfdir=ofdir - 1
|
||||
|
Loading…
Reference in New Issue
Block a user