diff options
author | orwell96 <mono96.mml@gmail.com> | 2016-08-28 20:59:54 +0200 |
---|---|---|
committer | orwell96 <mono96.mml@gmail.com> | 2016-08-28 20:59:54 +0200 |
commit | 30dd71ea5a0ec1be65d664941037ab2fd1ba4e4e (patch) | |
tree | 4d135de5e379da01ed88e6b451afe026384f96cb /wagons.lua | |
parent | 0787e197511a7844c266f23541cfd51d8ae35500 (diff) | |
download | advtrains-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 'wagons.lua')
-rw-r--r-- | wagons.lua | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -246,7 +246,7 @@ function wagon:on_step(dtime) for y=0,2 do
for z=-1,1 do
local node=minetest.get_node_or_nil(vector.add(first_pos, {x=x, y=y, z=z}))
- if node and minetest.registered_nodes[node.name] and minetest.registered_nodes[node.name].walkable then
+ if (advtrains.train_collides(node)) then
collides=true
end
end
|