diff --git a/ChestCommands/src/com/gmail/filoghost/chestcommands/serializer/IconSerializer.java b/ChestCommands/src/com/gmail/filoghost/chestcommands/serializer/IconSerializer.java index 2a9bac8..babfd16 100644 --- a/ChestCommands/src/com/gmail/filoghost/chestcommands/serializer/IconSerializer.java +++ b/ChestCommands/src/com/gmail/filoghost/chestcommands/serializer/IconSerializer.java @@ -131,14 +131,14 @@ public class IconSerializer { if (points > 0) { icon.setPlayerPointsPrice(points); } else if (points < 0) { - errorLogger.addError("The icon \"" + iconName + "\" in the menu \"" + menuFileName + "\" has negative POINTS: " + price); + errorLogger.addError("The icon \"" + iconName + "\" in the menu \"" + menuFileName + "\" has negative POINTS: " + points); } int levels = section.getInt(Nodes.EXP_LEVELS); if (levels > 0) { - icon.setExpLevelsPrice(points); + icon.setExpLevelsPrice(levels); } else if (levels < 0) { - errorLogger.addError("The icon \"" + iconName + "\" in the menu \"" + menuFileName + "\" has negative LEVELS: " + price); + errorLogger.addError("The icon \"" + iconName + "\" in the menu \"" + menuFileName + "\" has negative LEVELS: " + levels); } if (section.isSet(Nodes.REQUIRED_ITEM)) {