From 4436b9068a8ecf47515c70d0f51c6e470a15a763 Mon Sep 17 00:00:00 2001 From: trans_soup <> Date: Sun, 22 Oct 2023 21:44:47 +0200 Subject: [PATCH] make kindname comparison more reliable. --- mods/bg_api/leveled_node.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/bg_api/leveled_node.lua b/mods/bg_api/leveled_node.lua index 83cb8ec..c8f092d 100644 --- a/mods/bg_api/leveled_node.lua +++ b/mods/bg_api/leveled_node.lua @@ -1,7 +1,7 @@ local function is_same_kind (pos, kindname) local node = minetest.get_node(pos) local node_kindname = minetest.registered_items[node.name].kindname - return kindname == node_kindname + return kindname and node_kindname and kindname == node_kindname end function blockgame.check_for_stacking (pos)