From 70812dc80f10143fc49dd3710af764f8975b61ca Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Sat, 20 Aug 2022 13:14:16 +0200 Subject: 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) --- .../io/github/moulberry/notenoughupdates/recipes/MobLootRecipe.java | 4 ++-- 1 file 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); -- cgit