Skip to content

Commit

Permalink
Make sure we don't remove when source is from unloading chunks
Browse files Browse the repository at this point in the history
  • Loading branch information
jumanji144 committed Apr 9, 2024
1 parent 312a5a0 commit 667da2a
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ public LazyOptional<RSNodeHost> getSelfCap() {

@Override
public void onRemoved(IConduitType<?> type, Level level, BlockPos pos) {
if (!level.isLoaded(pos))
return;

selfCap.invalidate();

INetworkNodeManager manager = RSAPI.getNetworkNodeManager((ServerLevel) level);
Expand Down

0 comments on commit 667da2a

Please sign in to comment.