Skip to content
Snippets Groups Projects
Commit 8d3d558e authored by Foz's avatar Foz Committed by paramat
Browse files

Tnt: Fix bug in dropped item counting

parent de3adb58
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment