aboutsummaryrefslogtreecommitdiff
path: root/trackplacer.lua
diff options
context:
space:
mode:
authororwell96 <mono96.mml@gmail.com>2016-08-28 20:59:54 +0200
committerorwell96 <mono96.mml@gmail.com>2016-08-28 20:59:54 +0200
commit30dd71ea5a0ec1be65d664941037ab2fd1ba4e4e (patch)
tree4d135de5e379da01ed88e6b451afe026384f96cb /trackplacer.lua
parent0787e197511a7844c266f23541cfd51d8ae35500 (diff)
downloadadvtrains-30dd71ea5a0ec1be65d664941037ab2fd1ba4e4e.tar.gz
advtrains-30dd71ea5a0ec1be65d664941037ab2fd1ba4e4e.tar.bz2
advtrains-30dd71ea5a0ec1be65d664941037ab2fd1ba4e4e.zip
Add a platform node, make some nodes (esp. fences) not blocking trains, implement benchmarking better and optimize some things
Diffstat (limited to 'trackplacer.lua')
-rw-r--r--trackplacer.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/trackplacer.lua b/trackplacer.lua
index 7f04f93..a864b35 100644
--- a/trackplacer.lua
+++ b/trackplacer.lua
@@ -144,6 +144,7 @@ function tp.register_track_placer(nnprefix, imgprefix, dispname)
description = dispname,
inventory_image = imgprefix.."_placer.png",
wield_image = imgprefix.."_placer.png",
+ groups={},
on_place = function(itemstack, placer, pointed_thing)
if pointed_thing.type=="node" then
local pos=pointed_thing.above