diff options
| author | John <Techlone@users.noreply.github.com> | 2017-02-14 02:03:22 +0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-02-14 02:03:22 +0500 |
| commit | df3a245104ddd78c94019e863e8d1d9cafff0ff3 (patch) | |
| tree | 989ce01d36f60407b9b617b054a1bfd1193694a0 /src/main/java/gregtech/api/metatileentity | |
| parent | c3a94b585f947203db30c5818c9d9e09a08e0f3f (diff) | |
| parent | 64ddbfef6e92274c65b50bd15019240f110caad8 (diff) | |
| download | GT5-Unofficial-df3a245104ddd78c94019e863e8d1d9cafff0ff3.tar.gz GT5-Unofficial-df3a245104ddd78c94019e863e8d1d9cafff0ff3.tar.bz2 GT5-Unofficial-df3a245104ddd78c94019e863e8d1d9cafff0ff3.zip | |
Merge pull request #6 from Blood-Asp/unstable
Update
Diffstat (limited to 'src/main/java/gregtech/api/metatileentity')
| -rw-r--r-- | src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Transformer.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Transformer.java b/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Transformer.java index d91aafaacc..31cf58ad06 100644 --- a/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Transformer.java +++ b/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Transformer.java @@ -12,6 +12,7 @@ import gregtech.api.interfaces.metatileentity.IMetaTileEntity; import gregtech.api.interfaces.tileentity.IGregTechTileEntity; import gregtech.api.util.GT_Utility; import ic2.api.energy.tile.IEnergySource; +import ic2.api.reactor.IReactorChamber; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.ItemStack; import net.minecraft.nbt.NBTTagCompound; @@ -142,6 +143,9 @@ public class GT_MetaTileEntity_Transformer extends GT_MetaTileEntity_TieredMachi for (byte i = 0; i < 6 && aBaseMetaTileEntity.getStoredEU() < aBaseMetaTileEntity.getEUCapacity(); i++) if (aBaseMetaTileEntity.inputEnergyFrom(i)) { TileEntity tTileEntity = aBaseMetaTileEntity.getTileEntityAtSide(i); + if (tTileEntity instanceof IReactorChamber) { + tTileEntity = (TileEntity) ((IReactorChamber) tTileEntity).getReactor(); + } if (tTileEntity instanceof IEnergySource && ((IEnergySource) tTileEntity).emitsEnergyTo((TileEntity) aBaseMetaTileEntity, ForgeDirection.getOrientation(GT_Utility.getOppositeSide(i)))) { long tEU = Math.min(maxEUInput(), (long) ((IEnergySource) tTileEntity).getOfferedEnergy()); ((IEnergySource) tTileEntity).drawEnergy(tEU); |
