Update TShockAPI/Bouncer.cs

Co-authored-by: Arthri <41360489+Arthri@users.noreply.github.com>
This commit is contained in:
Nightklp 2025-04-04 12:49:31 +08:00 committed by GitHub
parent 3af71c70fe
commit 43daa67465
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2491,7 +2491,7 @@ namespace TShockAPI
if (!args.Player.HasBuildPermission(args.X, args.Y))
{
int num = Item.NewItem(new EntitySource_DebugCommand(), (args.X * 16) + 8, (args.Y * 16) + 8, args.Player.TPlayer.width, args.Player.TPlayer.height, args.ItemID, args.Stack, noBroadcast: true, args.Prefix, noGrabDelay: true);
int num = Item.NewItem(null, (args.X * 16) + 8, (args.Y * 16) + 8, args.Player.TPlayer.width, args.Player.TPlayer.height, args.ItemID, args.Stack, noBroadcast: true, args.Prefix, noGrabDelay: true);
Main.item[num].playerIndexTheItemIsReservedFor = args.Player.Index;
NetMessage.SendData((int)PacketTypes.ItemDrop, args.Player.Index, -1, NetworkText.Empty, num, 1f);
NetMessage.SendData((int)PacketTypes.ItemOwner, args.Player.Index, -1, NetworkText.Empty, num);