Fixed other player deaths causing transition

This commit is contained in:
patience 2026-04-21 12:23:26 +01:00
parent 67ef4319ea
commit ec9c477dd1
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View file

@ -54,7 +54,7 @@ namespace smoothDeathTransitions {
public override void PreUpdate() public override void PreUpdate()
{ {
// Check if appropriate conditions // Check if appropriate conditions
if(Main.netMode != NetmodeID.Server){ if(Main.netMode != NetmodeID.Server && Main.LocalPlayer == Player){
// Check if the time is nigh // Check if the time is nigh
if(transitionTicker==0 && Player.dead && Player.respawnTimer<transitionTime/2){ if(transitionTicker==0 && Player.dead && Player.respawnTimer<transitionTime/2){
transitionTicker=transitionTime; transitionTicker=transitionTime;

View file

@ -1,4 +1,4 @@
displayName = Smooth Death Transitions displayName = Smooth Death Transitions
author = Emerald Quartz author = Emerald Quartz
side = Client side = Client
version = 2.0.1 version = 2.0.2