From 35bdf7b5df56a044151a9c34f9874eed153caf95 Mon Sep 17 00:00:00 2001 From: cora Date: Mon, 21 Dec 2020 16:53:38 +0100 Subject: [PATCH] railscaff:cleanup --- clientmods/scaffold/railscaffold.lua | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/clientmods/scaffold/railscaffold.lua b/clientmods/scaffold/railscaffold.lua index 54b8e8524..906102ffd 100644 --- a/clientmods/scaffold/railscaffold.lua +++ b/clientmods/scaffold/railscaffold.lua @@ -10,7 +10,7 @@ local saplings = { local function checknode(pos) local node = minetest.get_node_or_nil(pos) - if node and node.name ~="mesecons_torch:redstoneblock" and node.name ~= "mcl_minecarts:golden_rail" then return true end + if node and node.name ~="mesecons_torch:redstoneblock" and not node.name:find("_rail") then return true end return false end @@ -24,8 +24,7 @@ scaffold.register_template_scaffold("RailScaffold", "scaffold_rails", function(b if checknode(fpos2) then scaffold.dig(fpos2) end if checknode(fpos3) then scaffold.dig(fpos3) end if checknode(fpos1) then scaffold.dig(fpos1) end - --if checknode(fpos2) then minetest.after("0",function() scaffold.dig(fpos2) end) end - --if checknode(fpos3) then minetest.after("0",function() scaffold.dig(fpos3) end) end + minetest.after("0.1",function() if scaffold.place_if_needed(dirt, below) then scaffold.place_if_needed(saplings, lp)