From 8f15e2e026f179f590198e7d995375e50a4f7987 Mon Sep 17 00:00:00 2001 From: Pelotrio <45769595+Pelotrio@users.noreply.github.com> Date: Tue, 14 Nov 2023 13:40:27 +0100 Subject: [PATCH] Added onUnload method to ExtremeExterminationChamber to not leak the world --- .../GT_MetaTileEntity_ExtremeExterminationChamber.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/java/kubatech/tileentity/gregtech/multiblock/GT_MetaTileEntity_ExtremeExterminationChamber.java b/src/main/java/kubatech/tileentity/gregtech/multiblock/GT_MetaTileEntity_ExtremeExterminationChamber.java index 13660c57..d17fd9ab 100644 --- a/src/main/java/kubatech/tileentity/gregtech/multiblock/GT_MetaTileEntity_ExtremeExterminationChamber.java +++ b/src/main/java/kubatech/tileentity/gregtech/multiblock/GT_MetaTileEntity_ExtremeExterminationChamber.java @@ -160,6 +160,11 @@ public void onRemoval() { } } + @Override + public void onUnload() { + if (LoaderReference.BloodMagic) MinecraftForge.EVENT_BUS.unregister(this); + } + private static final String WellOfSufferingRitualName = "AW013Suffering"; private static final Item poweredSpawnerItem = Item.getItemFromBlock(EnderIO.blockPoweredSpawner);