This commit is contained in:
Technus 2016-11-24 13:01:53 +01:00
parent 0cedc2195a
commit 8cd95d6582

View file

@ -1,5 +1,6 @@
package gregtech.common.tileentities.generators; package gregtech.common.tileentities.generators;
import com.dreammaster.main.MainRegistry;
import cpw.mods.fml.common.registry.GameRegistry; import cpw.mods.fml.common.registry.GameRegistry;
import gregtech.api.GregTech_API; import gregtech.api.GregTech_API;
import gregtech.api.enums.ConfigCategories; import gregtech.api.enums.ConfigCategories;
@ -63,6 +64,15 @@ public class GT_MetaTileEntity_DieselGenerator
return rValue; 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) { 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]}; return new ITexture[]{super.getFront(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.DIESEL_GENERATOR_FRONT), Textures.BlockIcons.OVERLAYS_ENERGY_OUT[this.mTier]};
} }