Made cable not able to receive energy if full. Same for provide/empty
This commit is contained in:
parent
5e960ec3f2
commit
74107dd3ea
1 changed files with 6 additions and 0 deletions
|
@ -235,11 +235,17 @@ public class TileCable extends TileEntity implements ITickable, IEnergyStorage,
|
|||
|
||||
@Override
|
||||
public boolean canExtract() {
|
||||
if (getEnergyStored() == 0 ) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean canReceive() {
|
||||
if (getMaxEnergyStored() == getEnergyStored()) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue