Update Bouncer/Item Bans refs for new models
This commit is contained in:
parent
a1243a580c
commit
ea6425a2e2
2 changed files with 4 additions and 3 deletions
|
|
@ -154,7 +154,7 @@ namespace TShockAPI
|
|||
internal void OnPlayerUpdate(object sender, PlayerUpdateEventArgs args)
|
||||
{
|
||||
DisableFlags disableFlags = TShock.Config.DisableSecondUpdateLogs ? DisableFlags.WriteToConsole : DisableFlags.WriteToLogAndConsole;
|
||||
bool useItem = ((BitsByte) args.Control)[5];
|
||||
bool useItem = args.Control.IsUsingItem;
|
||||
TSPlayer player = args.Player;
|
||||
string itemName = player.TPlayer.inventory[args.SelectedItem].Name;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue