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:
parent
f955688c46
commit
06f7d59f09
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user