aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2022-08-20 13:14:16 +0200
committerGitHub <noreply@github.com>2022-08-20 13:14:16 +0200
commit70812dc80f10143fc49dd3710af764f8975b61ca (patch)
treef9d8589396abd05717d9216bceb497142d86361d /src/main
parent46e99cbaac7e999048c18ee8f310b1b1b5d333af (diff)
downloadNotEnoughUpdates-70812dc80f10143fc49dd3710af764f8975b61ca.tar.gz
NotEnoughUpdates-70812dc80f10143fc49dd3710af764f8975b61ca.tar.bz2
NotEnoughUpdates-70812dc80f10143fc49dd3710af764f8975b61ca.zip
removing the warnings in the lore in the mob loot recipe gui from neu mod when the chance from the repo does not meet simple percentage formatting (#239)
Diffstat (limited to 'src/main')
-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);