fix: projector data sync

This commit is contained in:
xtex 2023-07-02 11:44:36 +08:00
parent e78a9dda4d
commit 3f168dbd8e
Signed by: xtex
GPG Key ID: B918086ED8045B91

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 }