From a8ba3048344fb16349554915e3fdffc6ad5ebaa1 Mon Sep 17 00:00:00 2001 From: Desour Date: Thu, 22 Oct 2020 22:55:11 +0200 Subject: [PATCH] Mvps: make ignore not replaceable even though it is buildable_to --- mesecons_mvps/init.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mesecons_mvps/init.lua b/mesecons_mvps/init.lua index 3792d26..2cccef2 100644 --- a/mesecons_mvps/init.lua +++ b/mesecons_mvps/init.lua @@ -55,6 +55,11 @@ end -- tests if the node can be pushed into, e.g. air, water, grass local function node_replaceable(name) + if name == "ignore" then + -- ignore is buildable_to, but we do not want to push into it + return false + end + if minetest.registered_nodes[name] then return minetest.registered_nodes[name].buildable_to or false end