From 70bbcefbed14ca3de73da61803865e9bc9107a61 Mon Sep 17 00:00:00 2001 From: epCode Date: Thu, 1 Apr 2021 14:12:07 -0700 Subject: [PATCH] make mob drops similar to MC --- mods/ENTITIES/mcl_mobs/api.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mods/ENTITIES/mcl_mobs/api.lua b/mods/ENTITIES/mcl_mobs/api.lua index f1df87e8b7..1ef0712e8e 100644 --- a/mods/ENTITIES/mcl_mobs/api.lua +++ b/mods/ENTITIES/mcl_mobs/api.lua @@ -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