@@ -113,7 +113,7 @@ private IItemHandler buildExternalNetworkInjectStorage(Direction side) {
113113 double speedupFactor = getAttachment (side ) instanceof ItemAttachedIo io ? io .getItemSpeedupFactor () : 1 ;
114114 return cache .insertList (node , paths , resource , maxAmount , simulate , speedupFactor , null );
115115 } else {
116- // The node can be null if the pipe was just placed, and not initialized yet.
116+ // The node can be null on the client or if the pipe was just placed and not initialized yet.
117117 return 0 ;
118118 }
119119 });
@@ -125,7 +125,7 @@ private IItemHandler buildExternalNetworkInjectStorage(Direction side) {
125125 private InsertionOnlyItemHandler buildExtractorNetworkInjectStorage (Direction side , ItemAttachedIo extractor ,
126126 @ Nullable MaxParticipant maxIndexParticipant ) {
127127 double speedupFactor = extractor .getItemSpeedupFactor ();
128- NetworkNode <ItemHost , ItemCache > node = findNode ();
128+ NetworkNode <ItemHost , ItemCache > node = findNodeOnServer ();
129129 var cache = node .getNetworkCache ();
130130 var paths = rearrangePaths (cache .pathCache .getPaths (node , side .getOpposite ()), extractor );
131131 return new InsertionOnlyItemHandler ((resource , maxAmount , simulate ) -> {
@@ -233,7 +233,7 @@ public void tickAttractor(Direction side, ItemAttachedIo attractor) {
233233 if (!insertTarget .hasStorage ())
234234 return ;
235235
236- NetworkNode <ItemHost , ItemCache > thisNode = findNode ();
236+ NetworkNode <ItemHost , ItemCache > thisNode = findNodeOnServer ();
237237 var cache = thisNode .getNetworkCache ();
238238 var pathCache = cache .pathCache ;
239239 var paths = rearrangePaths (pathCache .getPaths (thisNode , side .getOpposite ()), attractor );
@@ -356,7 +356,7 @@ public void tickMovingItems() {
356356
357357 @ Nullable
358358 ItemHost adjacentItemHost = null ;
359- NetworkNode <ItemHost , ItemCache > ownNode = findNode ();
359+ NetworkNode <ItemHost , ItemCache > ownNode = findNodeOnServer ();
360360 for (var connection : ownNode .getConnections ()) {
361361 if (connection .direction () == adjPipeDirection ) {
362362 adjacentItemHost = connection .target ().getHost ();
@@ -486,7 +486,7 @@ public void gatherCapabilities() {
486486
487487 if (oldConnections != inventoryConnections ) {
488488 pipe .sync ();
489- NetworkNode <ItemHost , ItemCache > node = findNode ();
489+ NetworkNode <ItemHost , ItemCache > node = findNodeOnServer ();
490490 node .getNetworkCache ().pathCache .invalidate ();
491491 }
492492 }
0 commit comments