Skip to content

Commit

Permalink
fix item pipe net not updating its net when neighbor changed
Browse files Browse the repository at this point in the history
  • Loading branch information
YoungOnionMC committed Nov 25, 2024
1 parent 185a431 commit 65807f2
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,8 @@ public void onChunkUnloaded() {

public IItemHandlerModifiable getHandler(@Nullable Direction side, boolean useCoverCapability) {
ensureHandlersInitialized();
checkNetwork();
if (this.currentItemPipeNet.get() == null) return null;

ItemNetHandler handler = getHandlers().getOrDefault(side, getDefaultHandler());
if (!useCoverCapability || side == null) return handler;
Expand Down

0 comments on commit 65807f2

Please sign in to comment.