This commit is contained in:
Dream-Master 2016-06-22 21:24:15 +02:00
parent d52d256f57
commit 64c0c1ca9d
3 changed files with 15 additions and 3 deletions

View file

@ -660,7 +660,8 @@ public abstract class GT_MetaTileEntity_BasicMachine extends GT_MetaTileEntity_B
public String[] getInfoData() { public String[] getInfoData() {
return new String[]{ return new String[]{
mNEIName, mNEIName,
"Progress:", (mProgresstime / 20) + " secs", "Progress:",
(mProgresstime / 20) + " secs",
(mMaxProgresstime / 20) + " secs", (mMaxProgresstime / 20) + " secs",
"Stored Energy:", "Stored Energy:",
getBaseMetaTileEntity().getStoredEU() + "EU", getBaseMetaTileEntity().getStoredEU() + "EU",

View file

@ -130,7 +130,7 @@ public class GT_MetaTileEntity_ElectricBlastFurnace
return false; return false;
} }
public boolean checkMachine(IGregTechTileEntity aBaseMetaTileEntity, ItemStack aStack) { private boolean checkMachineFunction(IGregTechTileEntity aBaseMetaTileEntity, ItemStack aStack) {
int xDir = ForgeDirection.getOrientation(aBaseMetaTileEntity.getBackFacing()).offsetX; int xDir = ForgeDirection.getOrientation(aBaseMetaTileEntity.getBackFacing()).offsetX;
int zDir = ForgeDirection.getOrientation(aBaseMetaTileEntity.getBackFacing()).offsetZ; int zDir = ForgeDirection.getOrientation(aBaseMetaTileEntity.getBackFacing()).offsetZ;
@ -203,6 +203,12 @@ public class GT_MetaTileEntity_ElectricBlastFurnace
this.mHeatingCapacity += 100 * (GT_Utility.getTier(getMaxInputVoltage()) - 2); this.mHeatingCapacity += 100 * (GT_Utility.getTier(getMaxInputVoltage()) - 2);
return true; return true;
} }
public boolean checkMachine(IGregTechTileEntity aBaseMetaTileEntity, ItemStack aStack){
boolean result= this.checkMachineFunction(aBaseMetaTileEntity,aStack);
if (!result) this.mHeatingCapacity=0;
return result;
}
public int getMaxEfficiency(ItemStack aStack) { public int getMaxEfficiency(ItemStack aStack) {
return 10000; return 10000;

View file

@ -95,7 +95,7 @@ public class GT_MetaTileEntity_MultiFurnace
return false; return false;
} }
public boolean checkMachine(IGregTechTileEntity aBaseMetaTileEntity, ItemStack aStack) { private boolean checkMachineFunction(IGregTechTileEntity aBaseMetaTileEntity, ItemStack aStack) {
int xDir = ForgeDirection.getOrientation(aBaseMetaTileEntity.getBackFacing()).offsetX; int xDir = ForgeDirection.getOrientation(aBaseMetaTileEntity.getBackFacing()).offsetX;
int zDir = ForgeDirection.getOrientation(aBaseMetaTileEntity.getBackFacing()).offsetZ; int zDir = ForgeDirection.getOrientation(aBaseMetaTileEntity.getBackFacing()).offsetZ;
@ -162,6 +162,11 @@ public class GT_MetaTileEntity_MultiFurnace
} }
return true; return true;
} }
public boolean checkMachine(IGregTechTileEntity aBaseMetaTileEntity, ItemStack aStack){
boolean result= this.checkMachineFunction(aBaseMetaTileEntity,aStack);
if (!result) this.mLevel=0;
return result;
}
public int getMaxEfficiency(ItemStack aStack) { public int getMaxEfficiency(ItemStack aStack) {
return 10000; return 10000;