Remove Emerge-0 warning that occurs when placing mineshafts

This commit is contained in:
teknomunk 2024-04-28 20:17:33 +00:00
parent dd444ebfb6
commit 1a277fd350
1 changed files with 1 additions and 4 deletions

View File

@ -221,10 +221,7 @@ local function update_rail_connections(pos, opt)
local node = minetest.get_node(pos) local node = minetest.get_node(pos)
local nodedef = minetest.registered_nodes[node.name] local nodedef = minetest.registered_nodes[node.name]
if not nodedef or not nodedef._mcl_minecarts then if not nodedef or not nodedef._mcl_minecarts then return end
minetest.log("warning", "attempting to rail connect to "..node.name)
return
end
-- Get the mappings to use -- Get the mappings to use
local rules = HORIZONTAL_RULES_BY_RAIL_GROUP[nodedef.groups.rail] local rules = HORIZONTAL_RULES_BY_RAIL_GROUP[nodedef.groups.rail]