Fix possible crash on llama death
This commit is contained in:
parent
0e364fc22c
commit
0fd1d34aa5
|
@ -74,6 +74,7 @@ function mcl_entity_invs.show_inv_form(ent,player,show_name)
|
||||||
end
|
end
|
||||||
|
|
||||||
local function drop_inv(ent)
|
local function drop_inv(ent)
|
||||||
|
if not ent._items then return end
|
||||||
local pos = ent.object:get_pos()
|
local pos = ent.object:get_pos()
|
||||||
for i,it in pairs(ent._items) do
|
for i,it in pairs(ent._items) do
|
||||||
local p = vector.add(pos,vector.new(math.random() - 0.5, math.random()-0.5, math.random()-0.5))
|
local p = vector.add(pos,vector.new(math.random() - 0.5, math.random()-0.5, math.random()-0.5))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user