fix void item crash
parent
ff7e2acbbe
commit
689fc76cf6
|
@ -922,8 +922,10 @@ minetest.register_entity("aliveai_massdestruction:blackhole",{
|
||||||
elseif np then
|
elseif np then
|
||||||
if not aliveai_nitroglycerine.spawn_dust(np) then
|
if not aliveai_nitroglycerine.spawn_dust(np) then
|
||||||
local nn=minetest.get_node(np).name
|
local nn=minetest.get_node(np).name
|
||||||
if nn then
|
if nn and np then
|
||||||
minetest.add_item(np, nn):get_luaentity().age=890
|
local e=minetest.add_item(np, nn)
|
||||||
|
if not e then return end
|
||||||
|
e:get_luaentity().age=890
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
minetest.remove_node(np)
|
minetest.remove_node(np)
|
||||||
|
|
Loading…
Reference in New Issue