Check for ability to output from side. Closes #2822
This commit is contained in:
parent
ff56edb2c3
commit
21515c8908
2 changed files with 6 additions and 3 deletions
|
@ -65,8 +65,11 @@ public abstract class PowerAcceptorBlockEntity extends MachineBaseBlockEntity im
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public long getMaxExtract(@Nullable Direction side) {
|
public long getMaxExtract(@Nullable Direction side) {
|
||||||
|
if (PowerAcceptorBlockEntity.this.canProvideEnergy(side)) {
|
||||||
return PowerAcceptorBlockEntity.this.getMaxOutput(side);
|
return PowerAcceptorBlockEntity.this.getMaxOutput(side);
|
||||||
}
|
}
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
};
|
};
|
||||||
private RcEnergyTier blockEntityPowerTier;
|
private RcEnergyTier blockEntityPowerTier;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue