mirror of
https://notabug.org/TenPlus1/lucky_block.git
synced 2024-08-20 12:34:09 +02:00
Fix falling node check
This commit is contained in:
parent
f7aebd12d4
commit
c251298bfe
2
init.lua
2
init.lua
@ -469,7 +469,7 @@ local lucky_block = function(pos, digger)
|
||||
local n = minetest.registered_nodes[nods[s]]
|
||||
local obj = minetest.add_entity(pos2, "__builtin:falling_node")
|
||||
|
||||
if obj then
|
||||
if obj and n then
|
||||
obj:get_luaentity():set_node(n)
|
||||
else
|
||||
obj:remove()
|
||||
|
Loading…
Reference in New Issue
Block a user