diff options
author | repo-alt <wvk17@yandex.ru> | 2022-01-15 21:21:51 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-15 19:21:51 +0100 |
commit | ed06cb6db107184ee0d3942d0f201958c2d24070 (patch) | |
tree | 6ea5a86b9ec2c331ca44fd8b3e623809812a463e /src/main/java/gregtech/common | |
parent | df3c2cd2aa61084117486a92bcb824cc8e264ec3 (diff) | |
download | GT5-Unofficial-ed06cb6db107184ee0d3942d0f201958c2d24070.tar.gz GT5-Unofficial-ed06cb6db107184ee0d3942d0f201958c2d24070.tar.bz2 GT5-Unofficial-ed06cb6db107184ee0d3942d0f201958c2d24070.zip |
Feature/ae dependency optional (#874)
* Allow toolbox usage for maintenance w/o opening GUI
(Also resolves https://github.com/GTNewHorizons/GT-New-Horizons-Modpack/issues/9044)
* make AE dependency optional again
Diffstat (limited to 'src/main/java/gregtech/common')
-rw-r--r-- | src/main/java/gregtech/common/covers/GT_Cover_ItemMeter.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/gregtech/common/covers/GT_Cover_ItemMeter.java b/src/main/java/gregtech/common/covers/GT_Cover_ItemMeter.java index 718529894b..bdd0174709 100644 --- a/src/main/java/gregtech/common/covers/GT_Cover_ItemMeter.java +++ b/src/main/java/gregtech/common/covers/GT_Cover_ItemMeter.java @@ -1,6 +1,8 @@ package gregtech.common.covers; import com.google.common.io.ByteArrayDataInput; + +import gregtech.api.GregTech_API; import gregtech.api.enums.GT_Values; import gregtech.api.gui.GT_GUICover; import gregtech.api.gui.widgets.GT_GuiFakeItemButton; @@ -78,7 +80,7 @@ public class GT_Cover_ItemMeter extends GT_CoverBehaviorBase<GT_Cover_ItemMeter. ItemStack[] inv = dc.getStoredItemData(); if (inv != null && inv.length > 1 && inv[1] != null) tUsed = inv[1].stackSize; - } else if (mte instanceof GT_MetaTileEntity_Hatch_OutputBus_ME) { + } else if (GregTech_API.mAE2 && mte instanceof GT_MetaTileEntity_Hatch_OutputBus_ME) { if (((GT_MetaTileEntity_Hatch_OutputBus_ME) mte).isLastOutputFailed()) { tMax = 64; tUsed = 64; |