1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-01 17:38:41 +00:00

Fix core.get_node_or_nil in emerge env

"ignore" does not mean unloaded, we have to properly check it.
This commit is contained in:
sfan5 2024-02-24 09:49:42 +01:00
parent 91ea47fddf
commit e734b3f0d8
3 changed files with 17 additions and 5 deletions

View file

@ -31,11 +31,6 @@ function core.get_node(pos)
return core.vmanip:get_node_at(pos)
end
function core.get_node_or_nil(pos)
local node = core.vmanip:get_node_at(pos)
return node.name ~= "ignore" and node
end
function core.get_perlin(seed, octaves, persist, spread)
local params
if type(seed) == "table" then