From bea7ecab5f47ab623008cb1e58e32b96a557fc5c Mon Sep 17 00:00:00 2001 From: DBotThePony Date: Tue, 4 Jan 2022 19:38:20 +0700 Subject: [PATCH] Fix matter bottler not destroying it's matter node --- .../mc/otm/block/entity/BlockEntityMatterBottler.kt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/kotlin/ru/dbotthepony/mc/otm/block/entity/BlockEntityMatterBottler.kt b/src/main/kotlin/ru/dbotthepony/mc/otm/block/entity/BlockEntityMatterBottler.kt index d7ff28c8c..b2174d4ac 100644 --- a/src/main/kotlin/ru/dbotthepony/mc/otm/block/entity/BlockEntityMatterBottler.kt +++ b/src/main/kotlin/ru/dbotthepony/mc/otm/block/entity/BlockEntityMatterBottler.kt @@ -217,6 +217,11 @@ class BlockEntityMatterBottler(p_155229_: BlockPos, p_155230_: BlockState) : return (Fraction.ONE - cap.storedMatter / initialCapacity!!).toFloat() } + override fun setRemoved() { + super.setRemoved() + node.destroy(::MatterNetworkGraph) + } + fun tick() { batteryChargeLoop()