1
0
derivado de nalc/nalc_game

Tnt: Fix bug in dropped item counting

Este cometimento está contido em:
Foz
2016-05-02 22:36:29 -04:00
cometido por paramat
ascendente de3adb5859
cometimento 8d3d558e42

Ver ficheiro

@@ -51,7 +51,7 @@ local function eject_drops(drops, pos, radius)
local count = item:get_count() local count = item:get_count()
while count > 0 do while count > 0 do
local take = math.max(1,math.min(radius * radius, local take = math.max(1,math.min(radius * radius,
item:get_count(), count,
item:get_stack_max())) item:get_stack_max()))
rand_pos(pos, drop_pos, radius) rand_pos(pos, drop_pos, radius)
local dropitem = ItemStack(item) local dropitem = ItemStack(item)