Skip to content

Commit

Permalink
v1.8.1
Browse files Browse the repository at this point in the history
* Updated player code
  • Loading branch information
hamstar0 committed Aug 8, 2018
1 parent 8d1f18d commit 0691b3b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion WormholesPlayer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ public override void clientClone( ModPlayer clone ) {
myclone.HasLoadedTownPortals = this.HasLoadedTownPortals;
}


////////////////

public override void Load( TagCompound tag ) {
Expand Down Expand Up @@ -126,7 +127,8 @@ public override void SyncPlayer( int to_who, int from_who, bool new_player ) {
}

public override void OnEnterWorld( Player player ) {
if( player.whoAmI != this.player.whoAmI ) { return; }
if( player.whoAmI == Main.myPlayer ) { return; }
if( this.player.whoAmI == Main.myPlayer ) { return; }

var mymod = (WormholesMod)this.mod;

Expand Down

0 comments on commit 0691b3b

Please sign in to comment.