diff --git a/src/main/kotlin/ru/dbotthepony/mc/otm/block/entity/blackhole/BlackHoleBlockEntity.kt b/src/main/kotlin/ru/dbotthepony/mc/otm/block/entity/blackhole/BlackHoleBlockEntity.kt index 3de8a8216..022ea1ecd 100644 --- a/src/main/kotlin/ru/dbotthepony/mc/otm/block/entity/blackhole/BlackHoleBlockEntity.kt +++ b/src/main/kotlin/ru/dbotthepony/mc/otm/block/entity/blackhole/BlackHoleBlockEntity.kt @@ -310,8 +310,9 @@ class BlackHoleBlockEntity(p_155229_: BlockPos, p_155230_: BlockState) : Mattery } } - @OnlyIn(Dist.CLIENT) - private val ambientSound = BlackHoleAmbientSoundInstance(this) + private val ambientSound: BlackHoleAmbientSoundInstance + @OnlyIn(Dist.CLIENT) + get() = BlackHoleAmbientSoundInstance(this) init { if (isClient) minecraft.soundManager.play(ambientSound)