![]() |
tModLoader v2025.09
A mod to make and play Terraria mods
|
Overrides Main.CurrentPlayer. For example, using var _currentPlr = new Main.CurrentPlayerOverride(player);
would result in Main.CurrentPlayer returning the specified player until the end of the current scope.
Used internally to make ModAccessorySlot access a specific player rather than Main.LocalPlayer.
More...
Public Member Functions | |
CurrentPlayerOverride (Player player) | |
void | Dispose () |
Overrides Main.CurrentPlayer. For example, using var _currentPlr = new Main.CurrentPlayerOverride(player);
would result in Main.CurrentPlayer returning the specified player until the end of the current scope.
Used internally to make ModAccessorySlot access a specific player rather than Main.LocalPlayer.