Skip to content

Commit

Permalink
Fixed Bee Box bias edge case
Browse files Browse the repository at this point in the history
  • Loading branch information
Doenerstyle committed Feb 14, 2024
1 parent fefbf67 commit 7744ae8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ public void updateTick() {
// if the biasSpawn isn't invalid
if (biasSpawn > 0) {
// the higher the bias, the less likely the operation will flip
if (random.nextInt(biasSpawn) == 0) {
if (random.nextInt(biasSpawn + 1) == 0) {
// flip the operation
shouldFill = !shouldFill;
}
Expand Down

0 comments on commit 7744ae8

Please sign in to comment.