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:
parent
91ea47fddf
commit
e734b3f0d8
3 changed files with 17 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue