TModLoader v1.4.4.9
TModLoader source code documentation
Loading...
Searching...
No Matches

◆ ClampHotbarOffset()

static int Terraria.Player.ClampHotbarOffset ( int Offset)
inlinestaticprivate

Definition at line 29650 of file Player.cs.

29651 {
29652 while (Offset > 9)
29653 {
29654 Offset -= 10;
29655 }
29656 while (Offset < 0)
29657 {
29658 Offset += 10;
29659 }
29660 return Offset;
29661 }

Referenced by Terraria.Player.ScrollHotbar(), and Terraria.Player.TryInterruptingItemUsage().

+ Here is the caller graph for this function: