Skip to content

Commit

Permalink
block/oxidizable.go: Fix int division
Browse files Browse the repository at this point in the history
  • Loading branch information
TwistedAsylumMC committed Nov 17, 2024
1 parent a2037f7 commit ba837da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/block/oxidizable.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ func attemptOxidation(pos cube.Pos, w *world.World, r *rand.Rand, o Oxidizable)
level := o.OxidationLevel()
if level == OxidizedOxidation() || !o.CanOxidate() {
return
} else if r.Float64() > 64/1125 {
} else if r.Float64() > 64.0/1125.0 {
return
}

Expand Down

0 comments on commit ba837da

Please sign in to comment.