From d340329ebe7a8b998b0765146bbb53cb8100e67f Mon Sep 17 00:00:00 2001 From: tenplus1 Date: Sun, 8 Jan 2023 11:23:31 +0000 Subject: [PATCH] falling node check for unknown nodes and report --- init.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/init.lua b/init.lua index 94c08fc..99884e1 100644 --- a/init.lua +++ b/init.lua @@ -535,7 +535,8 @@ local lb_falling = function(pos, digger, def) pos2.z = pos.z + math.random(-range, range) end - local n = nods[s] and table.copy(minetest.registered_nodes[nods[s]]) + local node = nods[s] and minetest.registered_nodes[nods[s]] + local n = node and table.copy(minetest.registered_nodes[nods[s]]) if n then @@ -550,6 +551,7 @@ local lb_falling = function(pos, digger, def) ent:set_node(n) end end + else print("[MOD] Lucky Block - Falling Node Error, Not Found:", nods[s]) end end) end