diff options
author | GlodBlock <1356392126@qq.com> | 2021-05-23 10:37:02 +0800 |
---|---|---|
committer | GlodBlock <1356392126@qq.com> | 2021-05-23 10:37:02 +0800 |
commit | 66af63c10c305f18ecb34a738b89cebb848f3654 (patch) | |
tree | 6ea0d1a4d3e5bcadf63ded551364c2a52d3669e6 /src/main/java/GoodGenerator/Blocks/TEs | |
parent | ea92dae55a958a95629b5d00b406e616ee7f4dfe (diff) | |
download | GT5-Unofficial-66af63c10c305f18ecb34a738b89cebb848f3654.tar.gz GT5-Unofficial-66af63c10c305f18ecb34a738b89cebb848f3654.tar.bz2 GT5-Unofficial-66af63c10c305f18ecb34a738b89cebb848f3654.zip |
finsh FRF and change texture code
Diffstat (limited to 'src/main/java/GoodGenerator/Blocks/TEs')
-rw-r--r-- | src/main/java/GoodGenerator/Blocks/TEs/FuelRefineFactory.java | 6 | ||||
-rw-r--r-- | src/main/java/GoodGenerator/Blocks/TEs/MultiNqGenerator.java | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/main/java/GoodGenerator/Blocks/TEs/FuelRefineFactory.java b/src/main/java/GoodGenerator/Blocks/TEs/FuelRefineFactory.java index 9dd38e0b6f..46e7ccf73e 100644 --- a/src/main/java/GoodGenerator/Blocks/TEs/FuelRefineFactory.java +++ b/src/main/java/GoodGenerator/Blocks/TEs/FuelRefineFactory.java @@ -330,9 +330,9 @@ public class FuelRefineFactory extends GT_MetaTileEntity_MultiblockBase_EM imple @SuppressWarnings("ALL") public ITexture[] getTexture(IGregTechTileEntity aBaseMetaTileEntity, byte aSide, byte aFacing, byte aColorIndex, boolean aActive, boolean aRedstone) { if(aSide == aFacing){ - if(aActive) return new ITexture[]{new GT_RenderedTexture(Textures.BlockIcons.MACHINE_CASING_ROBUST_TUNGSTENSTEEL),new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_ASSEMBLY_LINE_ACTIVE)}; - return new ITexture[]{new GT_RenderedTexture(Textures.BlockIcons.MACHINE_CASING_ROBUST_TUNGSTENSTEEL),new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_ASSEMBLY_LINE)}; + if(aActive) return new ITexture[]{Textures.BlockIcons.getCasingTextureForId(48),new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_ASSEMBLY_LINE_ACTIVE)}; + return new ITexture[]{Textures.BlockIcons.getCasingTextureForId(48),new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_ASSEMBLY_LINE)}; } - return new ITexture[]{new GT_RenderedTexture(Textures.BlockIcons.MACHINE_CASING_ROBUST_TUNGSTENSTEEL)}; + return new ITexture[]{Textures.BlockIcons.getCasingTextureForId(48)}; } } diff --git a/src/main/java/GoodGenerator/Blocks/TEs/MultiNqGenerator.java b/src/main/java/GoodGenerator/Blocks/TEs/MultiNqGenerator.java index eaa711a3a0..a2fddf9554 100644 --- a/src/main/java/GoodGenerator/Blocks/TEs/MultiNqGenerator.java +++ b/src/main/java/GoodGenerator/Blocks/TEs/MultiNqGenerator.java @@ -38,7 +38,7 @@ public class MultiNqGenerator extends GT_MetaTileEntity_MultiblockBase_EM implem private IStructureDefinition<MultiNqGenerator> multiDefinition = null; private int ticker = 0; - private int leftEnergy = 0; + private long leftEnergy = 0; boolean fluidLocker = true; FluidStack lockedFluid = null; int times = 1; @@ -286,7 +286,7 @@ public class MultiNqGenerator extends GT_MetaTileEntity_MultiblockBase_EM implem leftEnergy += outputPower; outputAmperes = leftEnergy / voltage; leftEnergy -= outputAmperes * voltage; - addEnergyOutput_EM(voltage ,outputAmperes); + addEnergyOutput_EM(voltage, outputAmperes); } else{ addEnergyOutput_EM(outputPower, 1); |