Failsafe
This commit is contained in:
parent
0cedc2195a
commit
8cd95d6582
1 changed files with 10 additions and 0 deletions
|
@ -1,5 +1,6 @@
|
|||
package gregtech.common.tileentities.generators;
|
||||
|
||||
import com.dreammaster.main.MainRegistry;
|
||||
import cpw.mods.fml.common.registry.GameRegistry;
|
||||
import gregtech.api.GregTech_API;
|
||||
import gregtech.api.enums.ConfigCategories;
|
||||
|
@ -63,6 +64,15 @@ public class GT_MetaTileEntity_DieselGenerator
|
|||
return rValue;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onPostTick(IGregTechTileEntity aBaseMetaTileEntity, long aTick) {
|
||||
if(aTick%100==0 && mFluid!=null && mFluid.amount>this.getCapacity()){
|
||||
MainRegistry.Logger.error("Dupe Abuse: "+aBaseMetaTileEntity.getOwnerName()+" Coords: "+aBaseMetaTileEntity.getXCoord()+" "+aBaseMetaTileEntity.getYCoord()+" "+aBaseMetaTileEntity.getZCoord(),aBaseMetaTileEntity);
|
||||
aBaseMetaTileEntity.setToFire();
|
||||
}
|
||||
super.onPostTick(aBaseMetaTileEntity, aTick);
|
||||
}
|
||||
|
||||
public ITexture[] getFront(byte aColor) {
|
||||
return new ITexture[]{super.getFront(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.DIESEL_GENERATOR_FRONT), Textures.BlockIcons.OVERLAYS_ENERGY_OUT[this.mTier]};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue