Skip to content

Commit 8d3d558

Browse files
fozoloparamat
authored andcommittedMay 5, 2016
Tnt: Fix bug in dropped item counting
1 parent de3adb5 commit 8d3d558

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎mods/tnt/init.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ local function eject_drops(drops, pos, radius)
5151
local count = item:get_count()
5252
while count > 0 do
5353
local take = math.max(1,math.min(radius * radius,
54-
item:get_count(),
54+
count,
5555
item:get_stack_max()))
5656
rand_pos(pos, drop_pos, radius)
5757
local dropitem = ItemStack(item)

0 commit comments

Comments
 (0)
Please sign in to comment.