Skip to content

Commit

Permalink
move old instances into if check
Browse files Browse the repository at this point in the history
  • Loading branch information
ghzdude committed Dec 7, 2023
1 parent b80f58d commit 083aaf9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -181,10 +181,10 @@ public void rebuildNetwork() {
if (storage.getType() != IQuantumStorage.Type.EXTENDER) {
storageInstances.put(pos, new WeakReference<>(storage));
storagePositions.add(pos);
oldInstances.remove(pos);
oldPositions.remove(pos);
}
storage.setConnected(this);
oldInstances.remove(pos);
oldPositions.remove(pos);

// check against already check posses so we don't recheck a checked pos
for (EnumFacing facing : EnumFacing.VALUES) {
Expand Down

0 comments on commit 083aaf9

Please sign in to comment.