From 7432cac58162435b082c4589892220b28ba8f7c7 Mon Sep 17 00:00:00 2001 From: YuRaNnNzZZ Date: Fri, 21 Feb 2025 14:41:55 +0300 Subject: [PATCH] =?UTF-8?q?=D0=97=D0=92=D0=A3=D0=9A=20=D0=9A=D0=9B=D0=98?= =?UTF-8?q?=D0=95=D0=9D=D0=A2=D0=A1=D0=9A=D0=98=D0=99.=20=D0=9E=D0=9D=20?= =?UTF-8?q?=D0=9D=D0=95=20=D0=94=D0=9E=D0=9B=D0=96=D0=95=D0=9D=20=D0=9F?= =?UTF-8?q?=D0=A0=D0=9E=D0=98=D0=93=D0=A0=D0=AB=D0=92=D0=90=D0=A2=D0=AC?= =?UTF-8?q?=D0=A1=D0=AF=20=D0=9D=D0=90=20=D0=A1=D0=95=D0=A0=D0=92=D0=95?= =?UTF-8?q?=D0=A0=D0=95.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mc/otm/block/entity/blackhole/BlackHoleBlockEntity.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 9d2e4ffc6..3de8a8216 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 @@ -44,6 +44,7 @@ import ru.dbotthepony.mc.otm.core.math.getSphericalBlockPositions import ru.dbotthepony.mc.otm.core.math.times import ru.dbotthepony.mc.otm.core.nbt.map import ru.dbotthepony.mc.otm.core.nbt.set +import ru.dbotthepony.mc.otm.isClient import ru.dbotthepony.mc.otm.matter.MatterManager import ru.dbotthepony.mc.otm.registry.MDamageTypes import ru.dbotthepony.mc.otm.registry.MatteryDamageSource @@ -313,7 +314,7 @@ class BlackHoleBlockEntity(p_155229_: BlockPos, p_155230_: BlockState) : Mattery private val ambientSound = BlackHoleAmbientSoundInstance(this) init { - minecraft.soundManager.play(ambientSound) + if (isClient) minecraft.soundManager.play(ambientSound) } companion object {