mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-22 15:18:34 +01:00
Closes #1152
This commit is contained in:
parent
f476e47a46
commit
6c10642832
1 changed files with 7 additions and 1 deletions
|
@ -65,7 +65,7 @@ public class TileEntityBioReactor extends TileEntityInventoryBase implements ISh
|
|||
if(this.burnTime <= 0){
|
||||
List<Item> types = null;
|
||||
|
||||
if(this.storage.getEnergyStored() < this.storage.getMaxEnergyStored()){
|
||||
if(!this.isRedstonePowered && this.storage.getEnergyStored() < this.storage.getMaxEnergyStored()){
|
||||
for(int i = 0; i < this.inv.getSlots(); i++){
|
||||
ItemStack stack = this.inv.getStackInSlot(i);
|
||||
if(StackUtil.isValid(stack)){
|
||||
|
@ -162,4 +162,10 @@ public class TileEntityBioReactor extends TileEntityInventoryBase implements ISh
|
|||
public IEnergyStorage getEnergyStorage(EnumFacing facing){
|
||||
return this.storage;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getComparatorStrength(){
|
||||
float calc = ((float)this.storage.getEnergyStored()/(float)this.storage.getMaxEnergyStored())*15F;
|
||||
return (int)calc;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue