railscaff:cleanup
This commit is contained in:
parent
d1b0a39418
commit
35bdf7b5df
@ -10,7 +10,7 @@ local saplings = {
|
|||||||
|
|
||||||
local function checknode(pos)
|
local function checknode(pos)
|
||||||
local node = minetest.get_node_or_nil(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
|
return false
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -24,8 +24,7 @@ scaffold.register_template_scaffold("RailScaffold", "scaffold_rails", function(b
|
|||||||
if checknode(fpos2) then scaffold.dig(fpos2) end
|
if checknode(fpos2) then scaffold.dig(fpos2) end
|
||||||
if checknode(fpos3) then scaffold.dig(fpos3) end
|
if checknode(fpos3) then scaffold.dig(fpos3) end
|
||||||
if checknode(fpos1) then scaffold.dig(fpos1) 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()
|
minetest.after("0.1",function()
|
||||||
if scaffold.place_if_needed(dirt, below) then
|
if scaffold.place_if_needed(dirt, below) then
|
||||||
scaffold.place_if_needed(saplings, lp)
|
scaffold.place_if_needed(saplings, lp)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user