fix: projector data sync

This commit is contained in:
2023-07-02 11:44:36 +08:00
parent e78a9dda4d
commit 3f168dbd8e

View File

@@ -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 }