mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-21 12:42:36 +00:00
Add red sand -> silicon recipe, possibly fix #1372
This commit is contained in:
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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user