Fixed other player deaths causing transition
This commit is contained in:
parent
67ef4319ea
commit
ec9c477dd1
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue