mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-22 18:41:09 +01:00
make mob drops similar to MC
This commit is contained in:
parent
5356e97b77
commit
0dbe66f3b4
1 changed files with 3 additions and 1 deletions
|
@ -735,7 +735,9 @@ local item_drop = function(self, cooked, looting_level)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- add item if it exists
|
-- add item if it exists
|
||||||
obj = minetest.add_item(pos, ItemStack(item .. " " .. num))
|
for x = 1, num do
|
||||||
|
obj = minetest.add_item(pos, ItemStack(item .. " " .. 1))
|
||||||
|
end
|
||||||
|
|
||||||
if obj and obj:get_luaentity() then
|
if obj and obj:get_luaentity() then
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue