From fa42941604e134133ea05d8a7fe633a5a9bebc19 Mon Sep 17 00:00:00 2001 From: tterrag1098 Date: Tue, 9 Dec 2014 03:10:28 -0500 Subject: [PATCH] Add red sand -> silicon recipe, possibly fix #1372 --- resources/assets/enderio/config/SAGMillRecipes_Core.xml | 9 +++++++++ .../crazypants/enderio/item/darksteel/EnergyUpgrade.java | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/resources/assets/enderio/config/SAGMillRecipes_Core.xml b/resources/assets/enderio/config/SAGMillRecipes_Core.xml index 3f7b1c46..38b22878 100644 --- a/resources/assets/enderio/config/SAGMillRecipes_Core.xml +++ b/resources/assets/enderio/config/SAGMillRecipes_Core.xml @@ -141,6 +141,15 @@ Examples: + + + + + + + + + diff --git a/src/main/java/crazypants/enderio/item/darksteel/EnergyUpgrade.java b/src/main/java/crazypants/enderio/item/darksteel/EnergyUpgrade.java index 15a9fd8c..df1c43de 100644 --- a/src/main/java/crazypants/enderio/item/darksteel/EnergyUpgrade.java +++ b/src/main/java/crazypants/enderio/item/darksteel/EnergyUpgrade.java @@ -219,7 +219,7 @@ public class EnergyUpgrade extends AbstractUpgrade { } public boolean isAbsorbDamageWithPower(ItemStack stack) { - boolean res= RANDOM.nextFloat() < getAbsorptionRatio(stack); + boolean res= RANDOM.nextDouble() < getAbsorptionRatio(stack); return res; }