From 8d3d558e424f8b5221834bed3780a440ac6b75ab Mon Sep 17 00:00:00 2001 From: Foz Date: Mon, 2 May 2016 22:36:29 -0400 Subject: [PATCH] Tnt: Fix bug in dropped item counting --- mods/tnt/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/tnt/init.lua b/mods/tnt/init.lua index f939d612..2f0ffdc4 100644 --- a/mods/tnt/init.lua +++ b/mods/tnt/init.lua @@ -51,7 +51,7 @@ local function eject_drops(drops, pos, radius) local count = item:get_count() while count > 0 do local take = math.max(1,math.min(radius * radius, - item:get_count(), + count, item:get_stack_max())) rand_pos(pos, drop_pos, radius) local dropitem = ItemStack(item)