Lets charge XP correctly.

This commit is contained in:
Brianna 2020-07-28 14:25:09 -05:00
parent fae3b80488
commit 19cadeb892

View File

@ -163,7 +163,7 @@ public class RepairHandler {
sold = true;
}
if (type == RepairType.ECONOMY && player.getLevel() >= playerData.getPrice() || sold || player.getGameMode() == GameMode.CREATIVE) {
if (type == RepairType.EXPERIENCE && player.getLevel() >= playerData.getPrice() || sold || player.getGameMode() == GameMode.CREATIVE) {
playerData.setBeingRepaired(true);
Effect effect = Effect.STEP_SOUND;