aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/recipes/MobLootRecipe.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/recipes/MobLootRecipe.java b/src/main/java/io/github/moulberry/notenoughupdates/recipes/MobLootRecipe.java
index 7702f365..82d56363 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/recipes/MobLootRecipe.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/recipes/MobLootRecipe.java
@@ -73,7 +73,7 @@ public class MobLootRecipe implements NeuRecipe {
private String formatDropChance() {
if (!chance.endsWith("%")) {
- return chance + " §cInvalid repo data!";
+ return chance;
}
String chanceText = chance.substring(0, chance.length() - 1);
@@ -81,7 +81,7 @@ public class MobLootRecipe implements NeuRecipe {
try {
chanceIn = (int) (100.0 / Double.parseDouble(chanceText));
} catch (NumberFormatException e) {
- return chance + " §cInvalid repo data!";
+ return chance;
}
String format = GuiProfileViewer.numberFormat.format(chanceIn);