diff --git a/TShockAPI/TSPlayer.cs b/TShockAPI/TSPlayer.cs index eeeaa29b..73b5db3b 100644 --- a/TShockAPI/TSPlayer.cs +++ b/TShockAPI/TSPlayer.cs @@ -633,6 +633,8 @@ namespace TShockAPI Main.item[itemid].stack = stack; Main.item[itemid].owner = Index; Main.item[itemid].prefix = (byte) prefix; + Main.item[itemid].noGrabDelay = 1; + Main.item[itemid].velocity = Main.player[this.Index].velocity; NetMessage.SendData((int)PacketTypes.ItemDrop, -1, -1, "", itemid, 0f, 0f, 0f); NetMessage.SendData((int)PacketTypes.ItemOwner, -1, -1, "", itemid, 0f, 0f, 0f); } diff --git a/TShockAPI/TShock.cs b/TShockAPI/TShock.cs index f2c8f32e..6daa2094 100644 --- a/TShockAPI/TShock.cs +++ b/TShockAPI/TShock.cs @@ -1079,6 +1079,9 @@ namespace TShockAPI player.Teleport(pos.X*16, pos.Y*16 + 48); }} + Item i = new Item(); + i.SetDefaults("Confetti Gun"); + player.GiveItem(i.type, i.name, i.width, i.headSlot, 10); args.Handled = true; }