mirror of
https://github.com/APercy/airutils.git
synced 2025-07-13 18:02:03 -04:00
fixed crash by nil positions on destruction effects
This commit is contained in:
parent
8e6a39ec81
commit
758ce12162
2 changed files with 2 additions and 0 deletions
|
@ -61,6 +61,7 @@ function airutils.get_node_pos(pos)
|
|||
end
|
||||
|
||||
function airutils.nodeatpos(pos)
|
||||
if pos == nil then return end
|
||||
local node = minetest.get_node_or_nil(pos)
|
||||
if node then return minetest.registered_nodes[node.name] end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue