diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2022-08-20 13:14:16 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-20 13:14:16 +0200 |
commit | 70812dc80f10143fc49dd3710af764f8975b61ca (patch) | |
tree | f9d8589396abd05717d9216bceb497142d86361d /src | |
parent | 46e99cbaac7e999048c18ee8f310b1b1b5d333af (diff) | |
download | NotEnoughUpdates-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')
-rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/recipes/MobLootRecipe.java | 4 |
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); |