Skip to content

Commit

Permalink
Fix portal travel sound playing on death (fixes #3)
Browse files Browse the repository at this point in the history
  • Loading branch information
makamys committed Jan 10, 2023
1 parent 3ede53b commit 4871e31
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ abstract class MixinNetHandlerPlayClient implements INetHandlerPlayClient {
@Inject(method = "handleRespawn", at = @At("HEAD"))
public void preHandleRespawn(S07PacketRespawn packet, CallbackInfo ci) {
int dimension = packet.func_149082_c();
if (dimension != gameController.thePlayer.dimension) {
if (dimension != gameController.thePlayer.dimension && !gameController.thePlayer.isDead) {
soundPending = true;
}
}
Expand Down

0 comments on commit 4871e31

Please sign in to comment.