Only place rails on solid nodes

master
orwell96 2017-02-21 11:02:25 +01:00
parent 6b5f5ea345
commit 56cbfc2c85
1 changed files with 1 additions and 1 deletions

View File

@ -192,7 +192,7 @@ function tp.register_track_placer(nnprefix, imgprefix, dispname)
end
if pointed_thing.type=="node" then
local pos=pointed_thing.above
local upos=pointed_thing.under
local upos=vector.subtract(pointed_thing.above, {x=0, y=1, z=0})
if minetest.is_protected(pos,name) and minetest.is_protected(upos,name) then
return itemstack
end