mirror of
https://github.com/minetest-mods/mesecons.git
synced 2024-11-17 07:40:29 +01:00
Mvps: make ignore not replaceable even though it is buildable_to
This commit is contained in:
parent
d356f901a3
commit
a8ba304834
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user