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()