login crash bug

This commit is contained in:
2025-01-03 19:19:19 -06:00
parent 02ea27fc6f
commit f72f632cd8
+1 -1
View File
@@ -4876,7 +4876,7 @@ public class PlayerCharacter extends AbstractCharacter {
this.timestamps.put("nextBoxCheck", System.currentTimeMillis() + 10000); this.timestamps.put("nextBoxCheck", System.currentTimeMillis() + 10000);
} }
if(this.level < 10) { if(this.level < 10 && this.enteredWorld) {
// this.setLevel((short) 10); // this.setLevel((short) 10);
while (this.level < 10) { while (this.level < 10) {
grantXP(Experience.getBaseExperience(this.level + 1) - this.exp); grantXP(Experience.getBaseExperience(this.level + 1) - this.exp);