Skip to content

Commit

Permalink
Fix MultiParts not calling removeFromController on unload (#2663)
Browse files Browse the repository at this point in the history
  • Loading branch information
krossgg authored Dec 28, 2024
1 parent 550b865 commit 149a70d
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ public void onUnload() {
for (BlockPos pos : controllerPositions) {
if (level instanceof ServerLevel && level.isLoaded(pos) &&
MetaMachine.getMachine(level, pos) instanceof IMultiController controller) {
removedFromController(controller);
controller.onPartUnload();
}
}
Expand Down

0 comments on commit 149a70d

Please sign in to comment.