From b22db4e71d6816d336bcb23c0e5e92b172319718 Mon Sep 17 00:00:00 2001 From: wsor4035 <24964441+wsor4035@users.noreply.github.com> Date: Sun, 28 Jul 2024 15:19:35 -0400 Subject: [PATCH] more debug --- mods/fl_stairs/init.lua | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/mods/fl_stairs/init.lua b/mods/fl_stairs/init.lua index 8da509c..431c7db 100644 --- a/mods/fl_stairs/init.lua +++ b/mods/fl_stairs/init.lua @@ -146,17 +146,16 @@ end) --]] minetest.register_on_mods_loaded(function() - for nodename, nodedef in pairs(minetest.registered_nodes) do - if string.find(nodename, "fl_stone") then - minetest.log("error", nodename) - end - if nodename == "fl_stone:basalt_block" then - minetest.log("error", dump(nodedef)) - end - end --minetest.after(0, function() for _, node in pairs(minetest.registered_items) do + if node.name == "fl_stone:basalt_block" then + minetest.log("error", "basalt node found") + end if node.groups.stairable == 1 then + if node.name == "fl_stone:basalt_block" then + minetest.log("error", "basalt node stair function calling") + end + fl_stairs.register_stairslab(node.name) end if node.groups.wallable == 1 then