diff --git a/pom.xml b/pom.xml
index 058e84b0..39971c6c 100644
--- a/pom.xml
+++ b/pom.xml
@@ -2,7 +2,7 @@
4.0.0
net.Indyuce
MMOCore
- 1.2.5
+ 1.3
Offer your players a brand new RPG experience.
diff --git a/src/main/java/net/Indyuce/mmocore/api/player/PlayerData.java b/src/main/java/net/Indyuce/mmocore/api/player/PlayerData.java
index e67f05e9..3556790f 100644
--- a/src/main/java/net/Indyuce/mmocore/api/player/PlayerData.java
+++ b/src/main/java/net/Indyuce/mmocore/api/player/PlayerData.java
@@ -246,7 +246,7 @@ public class PlayerData extends OfflinePlayerData {
public void refreshVanillaExp() {
if (MMOCore.plugin.configManager.overrideVanillaExp) {
player.setLevel(getLevel());
- player.setExp((float) experience / (float) getLevelUpExperience());
+ player.setExp(Math.max(0, Math.min(1, (float) experience / (float) getLevelUpExperience())));
}
}