diff --git a/src/main/java/com/comandante/creeper/npc/Npc.java b/src/main/java/com/comandante/creeper/npc/Npc.java index b9399300841661b2eecb5e6064066b6b7192bdba..98ff0ac2bfc36fc656b5ed1cc6778b4a5c394ce1 100644 --- a/src/main/java/com/comandante/creeper/npc/Npc.java +++ b/src/main/java/com/comandante/creeper/npc/Npc.java @@ -325,7 +325,7 @@ public class Npc extends CreeperEntity { } } - private String getBattleReport(int xpEarned) { + private String getBattleReport(long xpEarned) { StringBuilder sb = new StringBuilder(); sb.append(Color.MAGENTA).append("Battle Report----------------------------").append(Color.RESET).append("\r\n"); sb.append("You killed a "); @@ -381,7 +381,7 @@ public class Npc extends CreeperEntity { if (p == null) { continue; } - int xpEarned = (int) Math.round(playerDamageExperience.getValue()); + long xpEarned = (long) Math.round(playerDamageExperience.getValue()); p.addExperience(xpEarned); gameManager.getChannelUtils().write(p.getPlayerId(), getBattleReport(xpEarned) + "\r\n", true); }