diff options
author | orwell96 <mono96.mml@gmail.com> | 2017-02-21 11:02:25 +0100 |
---|---|---|
committer | orwell96 <mono96.mml@gmail.com> | 2017-02-21 11:02:25 +0100 |
commit | 56cbfc2c851c3fb664baa9ac0db7182a23f72bbf (patch) | |
tree | f34c98eeb3862d183a3d20a97b158cb36e038ed5 /advtrains | |
parent | 6b5f5ea34589088e479e0150a8fdc3ff8e44ca78 (diff) | |
download | advtrains-56cbfc2c851c3fb664baa9ac0db7182a23f72bbf.tar.gz advtrains-56cbfc2c851c3fb664baa9ac0db7182a23f72bbf.tar.bz2 advtrains-56cbfc2c851c3fb664baa9ac0db7182a23f72bbf.zip |
Only place rails on solid nodes
Diffstat (limited to 'advtrains')
-rw-r--r-- | advtrains/advtrains/trackplacer.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/advtrains/advtrains/trackplacer.lua b/advtrains/advtrains/trackplacer.lua index 9fee011..96081a8 100644 --- a/advtrains/advtrains/trackplacer.lua +++ b/advtrains/advtrains/trackplacer.lua @@ -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 |