Bukkit/CraftBukkit — comment on commit 0de9204d4496769eb9908aeab94462d18a9a7336
File: src/main/java/net/minecraft/server/BlockGravel.java line 13
By Zelif:

Isn't math.max(j, 3) going to find the higher number ? so if there was a crash with J > 3 then J still can = 4 or more with math.max (should it be math.min) ?

As with this it line 13 (without a potion) j will always = 3 so random.nextint(10 - j *3) will always == 0
random.nextint(1) will = 0 - 0.999' Im guessing it is always rounding it down to 0

If what I have said isn't correct in anyway don't mind it ;D