This commit is contained in:
Shadows_of_Fire 2018-07-27 20:45:50 -04:00
parent f476e47a46
commit 6c10642832

View file

@ -65,7 +65,7 @@ public class TileEntityBioReactor extends TileEntityInventoryBase implements ISh
if(this.burnTime <= 0){ if(this.burnTime <= 0){
List<Item> types = null; 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++){ for(int i = 0; i < this.inv.getSlots(); i++){
ItemStack stack = this.inv.getStackInSlot(i); ItemStack stack = this.inv.getStackInSlot(i);
if(StackUtil.isValid(stack)){ if(StackUtil.isValid(stack)){
@ -162,4 +162,10 @@ public class TileEntityBioReactor extends TileEntityInventoryBase implements ISh
public IEnergyStorage getEnergyStorage(EnumFacing facing){ public IEnergyStorage getEnergyStorage(EnumFacing facing){
return this.storage; return this.storage;
} }
@Override
public int getComparatorStrength(){
float calc = ((float)this.storage.getEnergyStored()/(float)this.storage.getMaxEnergyStored())*15F;
return (int)calc;
}
} }