diff --git a/pom.xml b/pom.xml
index 19d2a55..5447d2d 100644
--- a/pom.xml
+++ b/pom.xml
@@ -2,7 +2,7 @@
com.songoda
EpicHoppers
4.0.0
- 4.6
+ 4.6.1
clean install
EpicHoppers-${project.version}
diff --git a/src/main/java/com/songoda/epichoppers/EpicHoppers.java b/src/main/java/com/songoda/epichoppers/EpicHoppers.java
index 7e5cbc7..6275e79 100644
--- a/src/main/java/com/songoda/epichoppers/EpicHoppers.java
+++ b/src/main/java/com/songoda/epichoppers/EpicHoppers.java
@@ -272,7 +272,7 @@ public class EpicHoppers extends SongodaPlugin {
int linkAmount = levels.getInt("Link-amount", 1);
boolean filter = levels.getBoolean("Filter");
boolean teleport = levels.getBoolean("Teleport");
- int costExperiance = levels.getInt("Cost-xp", -1);
+ int costExperience = levels.getInt("Cost-xp", -1);
int costEconomy = levels.getInt("Cost-eco", -1);
int autoSell = levels.getInt("AutoSell");
@@ -290,7 +290,7 @@ public class EpicHoppers extends SongodaPlugin {
}
}
- levelManager.addLevel(level, costExperiance, costEconomy, radius, amount, filter, teleport, linkAmount, modules);
+ levelManager.addLevel(level, costExperience, costEconomy, radius, amount, filter, teleport, linkAmount, modules);
}
}
diff --git a/src/main/java/com/songoda/epichoppers/hopper/levels/modules/ModuleAutoSell.java b/src/main/java/com/songoda/epichoppers/hopper/levels/modules/ModuleAutoSell.java
index e1fd299..f0cdb69 100644
--- a/src/main/java/com/songoda/epichoppers/hopper/levels/modules/ModuleAutoSell.java
+++ b/src/main/java/com/songoda/epichoppers/hopper/levels/modules/ModuleAutoSell.java
@@ -88,7 +88,7 @@ public class ModuleAutoSell extends Module {
value = Settings.AUTOSELL_PRICES.getStringList().stream().filter(line -> Material.valueOf(line.split(",")[0]) == itemStack.getType()).findFirst()
.map(s -> Double.valueOf(s.split(",")[1])).orElse(0.0);
- if (value == 0) continue;
+ if (value <= 0) continue;
double sellingFor = value * itemStack.getAmount();