Skip to content

Commit 07157cf

Browse files
ACaiCatTHEXN
andcommitted
fix(GetDataHandler): fix unable to use sprayer items in Void Bag for painting
Co-authored-by: 肝帝熙恩 <[email protected]>
1 parent f955dd6 commit 07157cf

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

TShockAPI/GetDataHandlers.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3773,7 +3773,8 @@ private static bool HandlePaintTile(GetDataHandlerArgs args)
37733773
args.Player.SelectedItem.type != ItemID.SpectrePaintScraper &&
37743774
args.Player.SelectedItem.type != ItemID.SpectrePaintbrush &&
37753775
!args.Player.Accessories.Any(HasPaintSprayerAbilities) &&
3776-
!args.Player.Inventory.Any(HasPaintSprayerAbilities))
3776+
!args.Player.Inventory.Any(HasPaintSprayerAbilities) &&
3777+
!args.TPlayer.bank4.item.Any(HasPaintSprayerAbilities)) //Void Bag
37773778
{
37783779
TShock.Log.ConsoleDebug(GetString("GetDataHandlers / HandlePaintTile rejected select consistency {0}", args.Player.Name));
37793780
args.Player.SendData(PacketTypes.PaintTile, "", x, y, Main.tile[x, y].color());
@@ -3821,7 +3822,8 @@ private static bool HandlePaintWall(GetDataHandlerArgs args)
38213822
args.Player.SelectedItem.type != ItemID.SpectrePaintScraper &&
38223823
args.Player.SelectedItem.type != ItemID.SpectrePaintbrush &&
38233824
!args.Player.Accessories.Any(HasPaintSprayerAbilities) &&
3824-
!args.Player.Inventory.Any(HasPaintSprayerAbilities))
3825+
!args.Player.Inventory.Any(HasPaintSprayerAbilities)&&
3826+
!args.TPlayer.bank4.item.Any(HasPaintSprayerAbilities)) //Void Bag
38253827
{
38263828
TShock.Log.ConsoleDebug(GetString("GetDataHandlers / HandlePaintWall rejected selector consistency {0}", args.Player.Name));
38273829
args.Player.SendData(PacketTypes.PaintWall, "", x, y, Main.tile[x, y].wallColor());

0 commit comments

Comments
 (0)