fix(GetDataHandler): fix unable to use sprayer items in Void Bag for painting
Co-authored-by: 肝帝熙恩 <111548550+THEXN@users.noreply.github.com>
This commit is contained in:
parent
f955dd62ce
commit
07157cf0aa
1 changed files with 4 additions and 2 deletions
|
|
@ -3773,7 +3773,8 @@ namespace TShockAPI
|
|||
args.Player.SelectedItem.type != ItemID.SpectrePaintScraper &&
|
||||
args.Player.SelectedItem.type != ItemID.SpectrePaintbrush &&
|
||||
!args.Player.Accessories.Any(HasPaintSprayerAbilities) &&
|
||||
!args.Player.Inventory.Any(HasPaintSprayerAbilities))
|
||||
!args.Player.Inventory.Any(HasPaintSprayerAbilities) &&
|
||||
!args.TPlayer.bank4.item.Any(HasPaintSprayerAbilities)) //Void Bag
|
||||
{
|
||||
TShock.Log.ConsoleDebug(GetString("GetDataHandlers / HandlePaintTile rejected select consistency {0}", args.Player.Name));
|
||||
args.Player.SendData(PacketTypes.PaintTile, "", x, y, Main.tile[x, y].color());
|
||||
|
|
@ -3821,7 +3822,8 @@ namespace TShockAPI
|
|||
args.Player.SelectedItem.type != ItemID.SpectrePaintScraper &&
|
||||
args.Player.SelectedItem.type != ItemID.SpectrePaintbrush &&
|
||||
!args.Player.Accessories.Any(HasPaintSprayerAbilities) &&
|
||||
!args.Player.Inventory.Any(HasPaintSprayerAbilities))
|
||||
!args.Player.Inventory.Any(HasPaintSprayerAbilities)&&
|
||||
!args.TPlayer.bank4.item.Any(HasPaintSprayerAbilities)) //Void Bag
|
||||
{
|
||||
TShock.Log.ConsoleDebug(GetString("GetDataHandlers / HandlePaintWall rejected selector consistency {0}", args.Player.Name));
|
||||
args.Player.SendData(PacketTypes.PaintWall, "", x, y, Main.tile[x, y].wallColor());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue