From 1dffda9a8c06be4a0dac5d674116737df1cf25e4 Mon Sep 17 00:00:00 2001 From: IzzelAliz Date: Wed, 17 Mar 2021 14:10:57 +0800 Subject: [PATCH] Missing forge patch --- .../mixin/core/entity/player/ServerPlayerEntityMixin.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arclight-common/src/main/java/io/izzel/arclight/common/mixin/core/entity/player/ServerPlayerEntityMixin.java b/arclight-common/src/main/java/io/izzel/arclight/common/mixin/core/entity/player/ServerPlayerEntityMixin.java index b14507a3..354aee41 100644 --- a/arclight-common/src/main/java/io/izzel/arclight/common/mixin/core/entity/player/ServerPlayerEntityMixin.java +++ b/arclight-common/src/main/java/io/izzel/arclight/common/mixin/core/entity/player/ServerPlayerEntityMixin.java @@ -555,7 +555,9 @@ public abstract class ServerPlayerEntityMixin extends PlayerEntityMixin implemen this.connection.sendPacket(new SPlayEntityEffectPacket(this.getEntityId(), effectinstance)); } - this.connection.sendPacket(new SPlaySoundEventPacket(1032, BlockPos.ZERO, 0, false)); + if (teleporter.playTeleportSound((ServerPlayerEntity) (Object) this, serverworld, exitWorld[0])) { + this.connection.sendPacket(new SPlaySoundEventPacket(1032, BlockPos.ZERO, 0, false)); + } this.lastExperience = -1; this.lastHealth = -1.0F; this.lastFoodLevel = -1;