0
0
Fork 0

make mob drops similar to MC

This commit is contained in:
epCode 2021-04-01 14:12:07 -07:00 committed by kay27
parent 30973086e0
commit 70bbcefbed
1 changed files with 3 additions and 1 deletions

View File

@ -735,7 +735,9 @@ local item_drop = function(self, cooked, looting_level)
end
-- 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