Should fix one bug case on transformers?
This commit is contained in:
parent
c7f8240336
commit
4bfb425096
1 changed files with 4 additions and 4 deletions
|
@ -118,22 +118,22 @@ public class GT_MetaTileEntity_Transformer extends GT_MetaTileEntity_TieredMachi
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public long maxEUInput() {
|
public long maxEUInput() {
|
||||||
return V[getBaseMetaTileEntity().isAllowedToWork() ? mTier + 1 : mTier];
|
return V[getBaseMetaTileEntity().isActive() ? mTier + 1 : mTier];
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public long maxEUOutput() {
|
public long maxEUOutput() {
|
||||||
return V[getBaseMetaTileEntity().isAllowedToWork() ? mTier : mTier + 1];
|
return V[getBaseMetaTileEntity().isActive() ? mTier : mTier + 1];
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public long maxAmperesOut() {
|
public long maxAmperesOut() {
|
||||||
return getBaseMetaTileEntity().isAllowedToWork() ? (V[mTier + 1] / V[mTier] < 4 ? 4 : V[mTier + 1] / V[mTier]) : 1;
|
return getBaseMetaTileEntity().isActive() ? (V[mTier + 1] / V[mTier] < 4 ? 4 : V[mTier + 1] / V[mTier]) : 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public long maxAmperesIn() {
|
public long maxAmperesIn() {
|
||||||
return getBaseMetaTileEntity().isAllowedToWork() ? 1 : (V[mTier + 1] / V[mTier] < 4 ? 4 : V[mTier + 1] / V[mTier]);
|
return getBaseMetaTileEntity().isActive() ? 1 : (V[mTier + 1] / V[mTier] < 4 ? 4 : V[mTier + 1] / V[mTier]);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in a new issue