Fix/p2p desync when saving an input to memory card again (#353)

This commit is contained in:
hiroscho authored and GitHub committed 2025-11-07 21:33:01 +01:00
1 parent d9ccbe4bb1
commit 4a2b662dee
1 file changed
+1
@@ -310,6 +310,7 @@ public class PartFluidP2PInterface extends PartP2PTunnelStatic<PartFluidP2PInter
@Override
public PartP2PTunnel<?> applyMemoryCard(EntityPlayer player, IMemoryCard memoryCard, ItemStack is) {
PartP2PTunnel<?> newTunnel = super.applyMemoryCard(player, memoryCard, is);
if (Platform.isClient()) return newTunnel;
NBTTagCompound data = memoryCard.getData(is);
if (newTunnel instanceof PartFluidP2PInterface p2PInterface) {
p2PInterface.duality.getConfigManager().readFromNBT(data);