Skip to content

Commit

Permalink
Merge pull request #1289 from Dimach/diesel
Browse files Browse the repository at this point in the history
Added large diesel repair status to NC info panel.
  • Loading branch information
draknyte1 authored Nov 24, 2017
2 parents c7177dc + 5fbaf37 commit c7edbf1
Showing 1 changed file with 9 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public class GT_MetaTileEntity_DieselEngine extends GT_MetaTileEntity_MultiBlock
public GT_MetaTileEntity_DieselEngine(int aID, String aName, String aNameRegional) {
super(aID, aName, aNameRegional);
}

public GT_MetaTileEntity_DieselEngine(String aName) {
super(aName);
}
Expand Down Expand Up @@ -222,7 +222,7 @@ public int getMaxEfficiency(ItemStack aStack) {
public int getPollutionPerTick(ItemStack aStack) {
return 16;
}

@Override
public boolean explodesOnComponentBreak(ItemStack aStack) {
return true;
Expand All @@ -231,12 +231,13 @@ public boolean explodesOnComponentBreak(ItemStack aStack) {
@Override
public String[] getInfoData() {
return new String[]{
"Diesel Engine",
"Current Output: "+mEUt*mEfficiency/10000 +" EU/t",
"Fuel Consumption: "+fuelConsumption+"L/t",
"Fuel Value: "+fuelValue+" EU/L",
"Fuel Remaining: "+fuelRemaining+" Litres",
"Current Efficiency: "+(mEfficiency/100)+"%"};
"Diesel Engine",
"Current Output: " + mEUt * mEfficiency / 10000 + " EU/t",
"Fuel Consumption: " + fuelConsumption + "L/t",
"Fuel Value: " + fuelValue + " EU/L",
"Fuel Remaining: " + fuelRemaining + " Litres",
"Current Efficiency: " + (mEfficiency / 100) + "%",
getIdealStatus() == getRepairStatus() ? "No Maintainance issues" : "Needs Maintainance"};
}

@Override
Expand Down

0 comments on commit c7edbf1

Please sign in to comment.