Skip to content

Commit

Permalink
clear capability cache when marked as invalid to try prevent bad cach…
Browse files Browse the repository at this point in the history
…es (#8291)
  • Loading branch information
thiakil committed Jan 3, 2025
1 parent 18bd8d9 commit cce6e89
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -310,13 +310,20 @@ public void onUpdateServer() {
@Override
public void remove() {
super.remove();
capabilityCache.clear();
if (!isRemote()) {
for (TransporterStack stack : getTransit()) {
TransporterManager.remove(getLevel(), stack);
}
}
}

@Override
public void refreshConnections() {
super.refreshConnections();
capabilityCache.clear();
}

@Override
public InventoryNetwork createEmptyNetworkWithID(UUID networkID) {
return new InventoryNetwork(networkID);
Expand Down

0 comments on commit cce6e89

Please sign in to comment.