Consider falling nodes as replacement for platform
parent
ae97bffb58
commit
45a920f124
2
init.lua
2
init.lua
|
@ -148,7 +148,7 @@ local function NeedsPlatform(pos)
|
|||
local node = minetest.get_node({x=pos.x,y=pos.y-1,z=pos.z})
|
||||
local node2 = minetest.get_node({x=pos.x,y=pos.y-2,z=pos.z})
|
||||
local nodedef = minetest.registered_nodes[node.name]
|
||||
return node.name ~= "ignore" and node.name ~= "unknown" and nodedef.is_ground_content and nodedef.walkable == false and node2.name ~= tsm_railcorridors.nodes.dirt
|
||||
return node.name ~= "ignore" and node.name ~= "unknown" and nodedef.is_ground_content and ((nodedef.walkable == false and node2.name ~= tsm_railcorridors.nodes.dirt) or (nodedef.groups and nodedef.groups.falling_node))
|
||||
end
|
||||
|
||||
-- Create a cube filled with the specified nodes
|
||||
|
|
Loading…
Reference in New Issue