mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-30 16:28:00 +01:00
wip
This commit is contained in:
parent
1f767f0be3
commit
3792ca8c52
1 changed files with 3 additions and 2 deletions
|
@ -1,6 +1,7 @@
|
|||
package com.minelittlepony.unicopia.entity.player;
|
||||
|
||||
import net.minecraft.text.Text;
|
||||
import net.minecraft.util.math.MathHelper;
|
||||
|
||||
public enum ExperienceGroup {
|
||||
MAGICAL_KINDERGARTENER,
|
||||
|
@ -26,7 +27,7 @@ public enum ExperienceGroup {
|
|||
|
||||
public static ExperienceGroup forLevel(int level) {
|
||||
level /= 20;
|
||||
|
||||
return FRIENDSHIP_STUDENT;
|
||||
level = MathHelper.clamp(level, 0, values().length - 1);
|
||||
return values()[level];
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue