From 149a70dac7554c1b22a307e36e6c32da372c6d04 Mon Sep 17 00:00:00 2001 From: kross <135918757+krossgg@users.noreply.github.com> Date: Sat, 28 Dec 2024 00:11:41 -0500 Subject: [PATCH] Fix MultiParts not calling `removeFromController` on unload (#2663) --- .../gtceu/api/machine/multiblock/part/MultiblockPartMachine.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/com/gregtechceu/gtceu/api/machine/multiblock/part/MultiblockPartMachine.java b/src/main/java/com/gregtechceu/gtceu/api/machine/multiblock/part/MultiblockPartMachine.java index 89e82d16e9..0b45dccd39 100644 --- a/src/main/java/com/gregtechceu/gtceu/api/machine/multiblock/part/MultiblockPartMachine.java +++ b/src/main/java/com/gregtechceu/gtceu/api/machine/multiblock/part/MultiblockPartMachine.java @@ -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(); } }