Skip to content

Commit

Permalink
Fix server crash on Djinn Port
Browse files Browse the repository at this point in the history
  • Loading branch information
NetDwarf committed Jun 12, 2024
1 parent 36fdd25 commit a2be60f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions GameServer/serverrules/AbstractServerRules.cs
Original file line number Diff line number Diff line change
Expand Up @@ -243,13 +243,13 @@ public virtual void OnReleased(DOLEvent e, object sender, EventArgs args)

public virtual void OnPlayerTeleport(GamePlayer player, Teleport destination)
{
OnPlayerTeleport(player, destination);
// override this in order to do something, like set immunity, when a player teleports
}

[Obsolete("Use .OnPlayerTeleport(GamePlayer,Teleport) instead!")]
public virtual void OnPlayerTeleport(GamePlayer player, GameLocation source, Teleport destination)
{
// override this in order to do something, like set immunity, when a player teleports
OnPlayerTeleport(player, destination);
}

/// <summary>
Expand Down

0 comments on commit a2be60f

Please sign in to comment.