1
0
mirror of https://github.com/Refactorio/RedMew.git synced 2025-03-03 14:53:01 +02:00

added check for chance == 0

This commit is contained in:
grilledham 2019-01-20 22:58:46 +00:00
parent f955688c46
commit 06f7d59f09

View File

@ -106,6 +106,11 @@ local function fish_drop_entity_died(event)
local chance = bounds.chance
if chance == 0 then
return
end
if chance == 1 or random() <= chance then
local count = random(bounds.low, bounds.high)
if count > 0 then