From 6aae363b6b914a5ad32fe470de69799923c1c97d Mon Sep 17 00:00:00 2001 From: filoghost Date: Sun, 7 Dec 2014 15:18:51 +0100 Subject: [PATCH] Quick fix. --- .../filoghost/chestcommands/serializer/IconSerializer.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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)) {