cherry-pick from github.com/minetest/minetest_game> Tnt: Fix bug in dropped item counting

This commit is contained in:
Foz 2016-05-02 22:36:29 -04:00 committed by tchncs
parent 75aa611aa2
commit c47d026950
5 changed files with 6 additions and 6 deletions

View file

@ -45,7 +45,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)