Add red sand -> silicon recipe, possibly fix #1372

This commit is contained in:
tterrag1098 committed 2014-12-09 03:10:28 -05:00
1 parent 2410d6f844
commit fa42941604
2 files changed
+10 -1

No files matched your search

@@ -141,6 +141,15 @@ Examples:
<itemStack modID="EnderIO" itemName="itemMaterial" number="1" itemMeta="0" chance="0.5" />
</output>
</recipe>
<recipe name="SiliconRedSand" energyCost="720">
<input>
<itemStack modID="minecraft" itemName="sand" itemMeta="1" />
</input>
<output>
<itemStack modID="EnderIO" itemName="itemMaterial" number="1" itemMeta="0" chance="0.5" />
</output>
</recipe>
<recipe name="CoalOre" energyCost="3600">
<input>
@@ -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;
}