mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-07-31 11:35:28 +02:00
simply if code
This commit is contained in:
@@ -80,10 +80,7 @@ public class RandomChanceUtil
|
||||
public static boolean rollDice(double chanceOfSuccess, int bound) {
|
||||
Random random = new Random();
|
||||
|
||||
if (chanceOfSuccess > random.nextInt(bound))
|
||||
return true;
|
||||
else
|
||||
return false;
|
||||
return chanceOfSuccess > random.nextInt(bound);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user