From 1d990979ac16564986d041c16eab1e970296f438 Mon Sep 17 00:00:00 2001 From: gmcferrin Date: Mon, 7 Jan 2013 17:27:52 -0500 Subject: [PATCH] Made the casting a little less complex. No need to cast them BOTH to a double, only one is needed. --- .../java/com/gmail/nossr50/skills/mining/MiningManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/gmail/nossr50/skills/mining/MiningManager.java b/src/main/java/com/gmail/nossr50/skills/mining/MiningManager.java index 06fbdbbfd..db21ff5dc 100644 --- a/src/main/java/com/gmail/nossr50/skills/mining/MiningManager.java +++ b/src/main/java/com/gmail/nossr50/skills/mining/MiningManager.java @@ -45,7 +45,7 @@ public class MiningManager { randomChance = (int) (randomChance * 0.75); } - float chance = (float) (((double) Mining.DOUBLE_DROPS_MAX_CHANCE / (double) Mining.DOUBLE_DROPS_MAX_BONUS_LEVEL) * blockHandler.skillModifier); + float chance = (float) (((double) Mining.DOUBLE_DROPS_MAX_CHANCE / Mining.DOUBLE_DROPS_MAX_BONUS_LEVEL) * blockHandler.skillModifier); if (chance > Mining.getRandom().nextInt(randomChance)) { blockHandler.processDrops();