mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2025-01-10 18:47:31 +01:00
make mob drops similar to MC
This commit is contained in:
parent
30973086e0
commit
70bbcefbed
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user