From f26c54769fe6408192a41e46b710f83c9c472738 Mon Sep 17 00:00:00 2001 From: OgelGames Date: Sun, 10 Jul 2022 22:48:23 +1000 Subject: [PATCH] add check for ignore nodes --- death.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/death.lua b/death.lua index a3eec9c..542e955 100644 --- a/death.lua +++ b/death.lua @@ -14,6 +14,9 @@ local function can_replace(pos) if node.name == "air" or node.name == "vacuum:vacuum" then return true -- Air and vacuum is always replaceable end + if node.name == "ignore" then + return false -- Never replace ignore + end local def = minetest.registered_nodes[node.name] if not def then return false -- Never replace unknown nodes