#319 Conduits don't send power to tesseracts.

This commit is contained in:
CrazyPants committed 2013-11-29 15:59:52 +08:00
1 parent da398f57dc
commit 33f218ca2e
2 files changed
+7 -7

No files matched your search

@@ -354,11 +354,11 @@ public class LiquidConduit extends AbstractConduit implements ILiquidConduit {
if(filledFromThisTick.contains(getLocation().getLocation(from))) {
return 0;
}
if(doFill) {
filledFromThisTick.add(getLocation().getLocation(from));
}
if(network.lockNetworkForFill()) {
if(doFill) {
filledFromThisTick.add(getLocation().getLocation(from));
}
try {
int res = fill(from, resource, doFill, true, network == null ? -1 : network.getNextPushToken());
if(doFill && externalConnections.contains(from) && network != null) {
@@ -54,7 +54,7 @@ public class PowerInterface {
public float getEnergyStored(ForgeDirection dir) {
if(rfPower != null) {
return rfPower.getEnergyStored(dir) / 10f;
return rfPower.getEnergyStored(dir) / 10f;
}
// bc
@@ -72,7 +72,7 @@ public class PowerInterface {
public float getMaxEnergyStored(ForgeDirection dir) {
if(rfPower != null) {
return rfPower.getMaxEnergyStored(dir) / 10f;
return rfPower.getMaxEnergyStored(dir) / 10f;
}
// bc
@@ -91,7 +91,7 @@ public class PowerInterface {
public float getPowerRequest(ForgeDirection dir) {
if(rfPower != null) {
if(rfPower.canInterface(dir)) {
return rfPower.receiveEnergy(dir, rfPower.getMaxEnergyStored(dir), true) / 10f;
return rfPower.receiveEnergy(dir, 99999999, true) / 10f;
}
return 0;
}
@@ -125,7 +125,7 @@ public class PowerInterface {
public float recieveEnergy(ForgeDirection opposite, float canOffer) {
if(rfPower != null) {
return rfPower.receiveEnergy(opposite, (int)(canOffer * 10), false) / 10f;
return rfPower.receiveEnergy(opposite, (int) (canOffer * 10), false) / 10f;
}
if(bcPower != null) {