Skip to content

Commit

Permalink
Tnt: Fix bug in dropped item counting
Browse files Browse the repository at this point in the history
  • Loading branch information
fozolo authored and paramat committed May 5, 2016
1 parent de3adb5 commit 8d3d558
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mods/tnt/init.lua
Expand Up @@ -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)
Expand Down

0 comments on commit 8d3d558

Please sign in to comment.