mirror of
https://github.com/filoghost/ChestCommands.git
synced 2024-11-27 04:25:17 +01:00
Quick fix.
This commit is contained in:
parent
a0e721815d
commit
6aae363b6b
@ -131,14 +131,14 @@ public class IconSerializer {
|
|||||||
if (points > 0) {
|
if (points > 0) {
|
||||||
icon.setPlayerPointsPrice(points);
|
icon.setPlayerPointsPrice(points);
|
||||||
} else if (points < 0) {
|
} 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);
|
int levels = section.getInt(Nodes.EXP_LEVELS);
|
||||||
if (levels > 0) {
|
if (levels > 0) {
|
||||||
icon.setExpLevelsPrice(points);
|
icon.setExpLevelsPrice(levels);
|
||||||
} else if (levels < 0) {
|
} 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)) {
|
if (section.isSet(Nodes.REQUIRED_ITEM)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user