mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-22 18:41:09 +01:00
Merge pull request 'Fix possible crash on llama death' (#2690) from fix_llama_crash into fix_llama_player_inv
Reviewed-on: https://git.minetest.land/MineClone2/MineClone2/pulls/2690
This commit is contained in:
commit
2b9fb5679e
1 changed files with 1 additions and 0 deletions
|
@ -74,6 +74,7 @@ function mcl_entity_invs.show_inv_form(ent,player,show_name)
|
|||
end
|
||||
|
||||
local function drop_inv(ent)
|
||||
if not ent._items then return end
|
||||
local pos = ent.object:get_pos()
|
||||
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))
|
||||
|
|
Loading…
Reference in a new issue