From e66050c78d8eed40a4b04d16aed3232b69469a6d Mon Sep 17 00:00:00 2001 From: lc-1337 <62835225+lc-1337@users.noreply.github.com> Date: Tue, 7 Apr 2026 15:23:45 +0300 Subject: [PATCH] Legacy stack type (#416) Co-authored-by: Kogepan229 --- dependencies.gradle | 12 ++++++------ .../github/common/parts/PartFluidLevelEmitter.java | 8 ++++++++ 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/dependencies.gradle b/dependencies.gradle index 232314c0..756220db 100644 --- a/dependencies.gradle +++ b/dependencies.gradle @@ -34,10 +34,10 @@ * For more details, see https://docs.gradle.org/8.0.1/userguide/java_library_plugin.html#sec:java_library_configurations_graph */ dependencies { - api('com.github.GTNewHorizons:NotEnoughItems:2.8.86-GTNH:dev') - api('com.github.GTNewHorizons:Applied-Energistics-2-Unofficial:rv3-beta-885-GTNH:dev') + api('com.github.GTNewHorizons:NotEnoughItems:2.8.87-GTNH:dev') + api('com.github.GTNewHorizons:Applied-Energistics-2-Unofficial:rv3-beta-889-GTNH:dev') api('com.github.GTNewHorizons:waila:1.19.22:dev') - api("com.github.GTNewHorizons:GTNHLib:0.9.47:dev") + api("com.github.GTNewHorizons:GTNHLib:0.9.48:dev") implementation("com.github.GTNewHorizons:WirelessCraftingTerminal:1.12.13:dev") { exclude group: 'com.github.GTNewHorizons', module: 'Applied-Energistics-2-Unofficial' @@ -47,15 +47,15 @@ dependencies { compileOnly('com.github.GTNewHorizons:ExtraCells2:2.5.35:dev') { transitive = false } compileOnly('com.github.GTNewHorizons:ForestryMC:4.11.12:dev') compileOnly('com.github.GTNewHorizons:EnderIO:2.10.22:dev') - compileOnly('com.github.GTNewHorizons:GT5-Unofficial:5.09.52.402:dev') { + compileOnly('com.github.GTNewHorizons:GT5-Unofficial:5.09.52.411:dev') { exclude group: 'com.github.GTNewHorizons', module: 'AE2FluidCraft-Rework' exclude group: 'com.github.GTNewHorizons', module: 'Applied-Energistics-2-Unofficial' } compileOnly('thaumcraft:Thaumcraft:1.7.10-4.2.3.5:dev') compileOnly('com.gregoriust.gregtech:gregtech_1.7.10:6.14.23:dev') { transitive = false } - compileOnly('com.github.GTNewHorizons:OpenComputers:1.12.22-GTNH:dev') { transitive = false } - compileOnly('com.github.GTNewHorizons:ThaumicEnergistics:1.7.39-GTNH:dev') { transitive = false } + compileOnly('com.github.GTNewHorizons:OpenComputers:1.12.28-GTNH:dev') { transitive = false } + compileOnly('com.github.GTNewHorizons:ThaumicEnergistics:1.7.40-GTNH:dev') { transitive = false } runtimeOnlyNonPublishable("com.github.GTNewHorizons:DuraDisplay:1.4.2:dev") } diff --git a/src/main/java/com/glodblock/github/common/parts/PartFluidLevelEmitter.java b/src/main/java/com/glodblock/github/common/parts/PartFluidLevelEmitter.java index 729c7ea8..a501cfea 100644 --- a/src/main/java/com/glodblock/github/common/parts/PartFluidLevelEmitter.java +++ b/src/main/java/com/glodblock/github/common/parts/PartFluidLevelEmitter.java @@ -1,5 +1,7 @@ package com.glodblock.github.common.parts; +import static appeng.util.item.AEFluidStackType.FLUID_STACK_TYPE; + import net.minecraft.item.ItemStack; import net.minecraft.nbt.NBTTagCompound; @@ -8,6 +10,7 @@ import com.glodblock.github.common.item.ItemFluidPacket; import appeng.api.storage.StorageName; import appeng.api.storage.data.IAEItemStack; import appeng.api.storage.data.IAEStack; +import appeng.api.storage.data.IAEStackType; import appeng.helpers.Reflected; import appeng.parts.automation.PartLevelEmitter; @@ -27,4 +30,9 @@ public class PartFluidLevelEmitter extends PartLevelEmitter { this.getAEInventoryByName(StorageName.CONFIG).putAEStackInSlot(0, ItemFluidPacket.getFluidAEStack(ais)); } } + + @Override + protected IAEStackType getUltraLegacyType() { + return FLUID_STACK_TYPE; + } }