mirror of
https://github.com/minetest-mods/mesecons.git
synced 2025-07-04 08:30:24 +02:00
Mvps: make ignore not replaceable even though it is buildable_to
This commit is contained in:
@ -55,6 +55,11 @@ end
|
|||||||
|
|
||||||
-- tests if the node can be pushed into, e.g. air, water, grass
|
-- tests if the node can be pushed into, e.g. air, water, grass
|
||||||
local function node_replaceable(name)
|
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
|
if minetest.registered_nodes[name] then
|
||||||
return minetest.registered_nodes[name].buildable_to or false
|
return minetest.registered_nodes[name].buildable_to or false
|
||||||
end
|
end
|
||||||
|
Reference in New Issue
Block a user