From de28a6648daa94d52335ba6703bee83cb43ea4d5 Mon Sep 17 00:00:00 2001 From: DBotThePony Date: Thu, 29 Sep 2022 22:20:31 +0700 Subject: [PATCH] Make synchronizer observe --- .../dbotthepony/mc/otm/block/entity/SynchronizedBlockEntity.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/kotlin/ru/dbotthepony/mc/otm/block/entity/SynchronizedBlockEntity.kt b/src/main/kotlin/ru/dbotthepony/mc/otm/block/entity/SynchronizedBlockEntity.kt index 8952d4c64..3eac48913 100644 --- a/src/main/kotlin/ru/dbotthepony/mc/otm/block/entity/SynchronizedBlockEntity.kt +++ b/src/main/kotlin/ru/dbotthepony/mc/otm/block/entity/SynchronizedBlockEntity.kt @@ -27,6 +27,8 @@ abstract class SynchronizedBlockEntity(p_155228_: BlockEntityType<*>, p_155229_: return } + synchronizer.observe() + val server = level?.server ?: return if (server.playerCount <= 0) {