From 39a996f79f663c07de4b2830995d9abf55bcde4d Mon Sep 17 00:00:00 2001 From: DBotThePony Date: Wed, 26 Mar 2025 22:40:44 +0700 Subject: [PATCH] Fix matter capacitor bank not marking chunks as dirty --- .../block/entity/matter/MatterCapacitorBankBlockEntity.kt | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/main/kotlin/ru/dbotthepony/mc/otm/block/entity/matter/MatterCapacitorBankBlockEntity.kt b/src/main/kotlin/ru/dbotthepony/mc/otm/block/entity/matter/MatterCapacitorBankBlockEntity.kt index 96f2b418d..1e437404a 100644 --- a/src/main/kotlin/ru/dbotthepony/mc/otm/block/entity/matter/MatterCapacitorBankBlockEntity.kt +++ b/src/main/kotlin/ru/dbotthepony/mc/otm/block/entity/matter/MatterCapacitorBankBlockEntity.kt @@ -93,6 +93,10 @@ class MatterCapacitorBankBlockEntity(p_155229_: BlockPos, p_155230_: BlockState) } } + if (!simulate && !summ.isZero) { + markDirtyFast() + } + return summ } @@ -115,6 +119,10 @@ class MatterCapacitorBankBlockEntity(p_155229_: BlockPos, p_155230_: BlockState) } } + if (!simulate && !summ.isZero) { + markDirtyFast() + } + return summ }