diff --git a/dependencies.gradle b/dependencies.gradle index a98d4127d..ae74cc112 100644 --- a/dependencies.gradle +++ b/dependencies.gradle @@ -35,7 +35,7 @@ */ dependencies { api('com.github.GTNewHorizons:NotEnoughItems:2.4.5-GTNH:dev') - api('com.github.GTNewHorizons:Applied-Energistics-2-Unofficial:rv3-beta-273-GTNH:dev') + api('com.github.GTNewHorizons:Applied-Energistics-2-Unofficial:rv3-beta-277-GTNH:dev') api('curse.maven:cofh-core-69162:2388751') api('com.github.GTNewHorizons:waila:1.6.2:dev') diff --git a/src/main/java/com/glodblock/github/common/parts/PartFluidP2PInterface.java b/src/main/java/com/glodblock/github/common/parts/PartFluidP2PInterface.java index 774e897d3..9194019e4 100644 --- a/src/main/java/com/glodblock/github/common/parts/PartFluidP2PInterface.java +++ b/src/main/java/com/glodblock/github/common/parts/PartFluidP2PInterface.java @@ -60,6 +60,7 @@ import appeng.helpers.IPriorityHost; import appeng.me.GridAccessException; import appeng.parts.automation.UpgradeInventory; +import appeng.parts.p2p.PartP2PTunnel; import appeng.parts.p2p.PartP2PTunnelStatic; import appeng.tile.inventory.AppEngInternalAEInventory; import appeng.tile.inventory.AppEngInternalInventory; @@ -502,6 +503,19 @@ public void writeToNBT(NBTTagCompound data) { duality.writeToNBT(data); } + @Override + public NBTTagCompound getMemoryCardData() { + final NBTTagCompound output = super.getMemoryCardData(); + this.duality.getConfigManager().writeToNBT(output); + return output; + } + + @Override + public void pasteMemoryCardData(PartP2PTunnel newTunnel, NBTTagCompound data) throws GridAccessException { + this.duality.getConfigManager().readFromNBT(data); + super.pasteMemoryCardData(newTunnel, data); + } + @Override public void addToWorld() { super.addToWorld();