mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-07-17 13:04:42 +02:00
Updating Unarmed (WIP)
This commit is contained in:
@ -264,6 +264,7 @@ public class Misc {
|
||||
* @return whichever value is lower
|
||||
*/
|
||||
public static int skillCheck(int skillLevel, int maxLevel) {
|
||||
//TODO: Could we just use Math.min(skillLevel, maxLevel) here?
|
||||
if (skillLevel > maxLevel) {
|
||||
return maxLevel;
|
||||
}
|
||||
@ -288,3 +289,4 @@ public class Misc {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user