Merge branch 'development' into 1.8
This commit is contained in:
commit
6b4ef3bb50
2 changed files with 9 additions and 7 deletions
|
@ -141,17 +141,15 @@ public class EnergyNetwork extends DynamicNetwork<TileEntity, EnergyNetwork>
|
|||
|
||||
double sent = 0;
|
||||
boolean tryAgain = false;
|
||||
int i = 0;
|
||||
|
||||
do {
|
||||
tryAgain = false;
|
||||
|
||||
double prev = sent;
|
||||
sent += doEmit(energyToSend-sent, tryAgain);
|
||||
|
||||
if(energyToSend-sent > 0 && sent-prev > 0)
|
||||
{
|
||||
tryAgain = true;
|
||||
}
|
||||
tryAgain = energyToSend-sent > 0 && sent-prev > 0 && i < 100;
|
||||
|
||||
i++;
|
||||
} while(tryAgain);
|
||||
|
||||
joulesTransmitted = sent;
|
||||
|
|
|
@ -6,7 +6,6 @@ import java.util.List;
|
|||
|
||||
import mekanism.api.util.ItemInfo;
|
||||
import mekanism.common.util.MekanismUtils;
|
||||
|
||||
import net.minecraft.item.ItemBlock;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraftforge.oredict.OreDictionary;
|
||||
|
@ -56,6 +55,11 @@ public final class OreDictCache
|
|||
|
||||
for(String s : OreDictionary.getOreNames())
|
||||
{
|
||||
if(s == null)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
if(oreName.equals(s) || oreName.equals("*"))
|
||||
{
|
||||
keys.add(s);
|
||||
|
|
Loading…
Add table
Reference in a new issue