Skip to content

Commit d02a741

Browse files
committed
Fix exploding PTERBs not first removing their energy hatches from the global registry
1 parent 5186d3e commit d02a741

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/net/neganote/gtutilities/common/machine/multiblock/PTERBMachine.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,12 +298,12 @@ private List<IMultiPart> getPrioritySortedParts() {
298298
@Override
299299
public void onStructureInvalid() {
300300
coolantTimer = 0;
301+
removeWirelessEnergy();
301302
if ((isWorkingEnabled() && recipeLogic.getStatus() == RecipeLogic.Status.WORKING) &&
302303
!ConfigHolder.INSTANCE.machines.harmlessActiveTransformers) {
303304
explode();
304305
}
305306
super.onStructureInvalid();
306-
removeWirelessEnergy();
307307
this.localPowerOutput = new ArrayList<>();
308308
this.localPowerInput = new ArrayList<>();
309309
this.coolantHatchPos = null;

0 commit comments

Comments
 (0)