mirror of
https://github.com/GTNewHorizons/AE2FluidCraft-Rework.git
synced 2026-10-25 20:22:20 +00:00
reduce p2p interface lags on bind and on pattern change (#322)
Co-authored-by: NeOzay <69015205+NeOzay@users.noreply.github.com>
This commit is contained in:
1 parent
12bdd5ebfc
commit
64ecb14e96
1 file changed
+9
-1
@@ -60,6 +60,7 @@ import appeng.helpers.DualityInterface;
|
||||
import appeng.helpers.IInterfaceHost;
|
||||
import appeng.helpers.IPriorityHost;
|
||||
import appeng.me.GridAccessException;
|
||||
import appeng.me.cache.CraftingGridCache;
|
||||
import appeng.parts.automation.UpgradeInventory;
|
||||
import appeng.parts.p2p.PartP2PTunnel;
|
||||
import appeng.parts.p2p.PartP2PTunnelStatic;
|
||||
@@ -83,12 +84,19 @@ public class PartFluidP2PInterface extends PartP2PTunnelStatic<PartFluidP2PInter
|
||||
@Override
|
||||
public void updateCraftingList() {
|
||||
if (!isOutput()) {
|
||||
CraftingGridCache.pauseRebuilds();
|
||||
|
||||
super.updateCraftingList();
|
||||
|
||||
try {
|
||||
for (PartFluidP2PInterface p2p : getOutputs()) p2p.duality.updateCraftingList();
|
||||
for (PartFluidP2PInterface p2p : getOutputs()) {
|
||||
p2p.duality.updateCraftingList();
|
||||
}
|
||||
} catch (GridAccessException e) {
|
||||
// ?
|
||||
}
|
||||
|
||||
CraftingGridCache.unpauseRebuilds();
|
||||
} else {
|
||||
PartFluidP2PInterface p2p = getInput();
|
||||
if (p2p != null) {
|
||||
|
||||
Reference in new issue
Block a user