move death event to work with doImmediateRespawn gamerule

This commit is contained in:
Wagyourtail
2022-03-15 18:44:39 -07:00
parent 477e3a706b
commit 89bd2a4a07

View File

@@ -175,7 +175,7 @@ public class MixinClientPlayNetHandler {
method = "handlePlayerCombatKill",
at = @At(
value = "INVOKE",
target = "Lnet/minecraft/client/Minecraft;setScreen(Lnet/minecraft/client/gui/screens/Screen;)V"
target = "Lnet/minecraft/client/player/LocalPlayer;shouldShowDeathScreen()Z"
)
)
private void onPlayerDeath(ClientboundPlayerCombatKillPacket packetIn, CallbackInfo ci) {