Fix matter bottler not destroying it's matter node

This commit is contained in:
DBotThePony 2022-01-04 19:38:20 +07:00
parent 605ab992f5
commit bea7ecab5f
Signed by: DBot
GPG Key ID: DCC23B5715498507

View File

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