From 3f168dbd8ee67f169141e9c9b6f65f0823cc8320 Mon Sep 17 00:00:00 2001 From: xtex Date: Sun, 2 Jul 2023 11:44:36 +0800 Subject: [PATCH] fix: projector data sync --- .../src/main/kotlin/quaedam/projector/ProjectorBlockEntity.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/main/kotlin/quaedam/projector/ProjectorBlockEntity.kt b/common/src/main/kotlin/quaedam/projector/ProjectorBlockEntity.kt index 9df1029..9f5a641 100644 --- a/common/src/main/kotlin/quaedam/projector/ProjectorBlockEntity.kt +++ b/common/src/main/kotlin/quaedam/projector/ProjectorBlockEntity.kt @@ -92,7 +92,7 @@ class ProjectorBlockEntity(pos: BlockPos, state: BlockState) : this.effects = effects if (level != null) { val level = level!! - if (level.isClientSide && notify) { + if (!level.isClientSide && notify) { sendBlockUpdated() } val addedEffects = effects.filterKeys { it !in oldEffects }