From fe246a71610be6b95f1fbaa62a24d7eec9a8b8b9 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 --- init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.lua b/init.lua index f939d61..2f0ffdc 100644 --- a/init.lua +++ b/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)