From d10c7d7829d2439bb58f02a6c6e32ac53f102d87 Mon Sep 17 00:00:00 2001 From: DBotThePony Date: Tue, 27 Aug 2024 22:32:14 +0700 Subject: [PATCH] Fix postLevelTick not listening for proper subclass --- .../ru/dbotthepony/mc/otm/block/entity/MatteryBlockEntity.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/ru/dbotthepony/mc/otm/block/entity/MatteryBlockEntity.kt b/src/main/kotlin/ru/dbotthepony/mc/otm/block/entity/MatteryBlockEntity.kt index 165308689..4b72a5937 100644 --- a/src/main/kotlin/ru/dbotthepony/mc/otm/block/entity/MatteryBlockEntity.kt +++ b/src/main/kotlin/ru/dbotthepony/mc/otm/block/entity/MatteryBlockEntity.kt @@ -532,7 +532,7 @@ abstract class MatteryBlockEntity(p_155228_: BlockEntityType<*>, p_155229_: Bloc tickingMap.clear() } - fun postLevelTick(event: LevelTickEvent) { + fun postLevelTick(event: LevelTickEvent.Post) { val level = event.level as? ServerLevel ?: return tickingMap[level]?.forEach {