Mvps: make ignore not replaceable even though it is buildable_to

This commit is contained in:
Desour 2020-10-22 22:55:11 +02:00
parent d356f901a3
commit a8ba304834

View File

@ -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