From 5362389e718d51004333e4cdb832ac61fab7b3ae Mon Sep 17 00:00:00 2001 From: Lucas Nicodemus Date: Tue, 26 Dec 2017 20:04:22 -0700 Subject: [PATCH] Remove obsolete GiveItem call. --- TShockAPI/TSPlayer.cs | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/TShockAPI/TSPlayer.cs b/TShockAPI/TSPlayer.cs index 71ad2124..5a2e393a 100644 --- a/TShockAPI/TSPlayer.cs +++ b/TShockAPI/TSPlayer.cs @@ -1287,22 +1287,6 @@ namespace TShockAPI SendData(PacketTypes.ItemDrop, "", itemIndex); } - /// - /// Gives an item to the player. - /// - /// The item ID. - /// The item name. This parameter is unused. - /// The width of the receiver. - /// The height of the receiver. - /// The item stack. - /// The item prefix. - [Obsolete("Use the GiveItem overload with fewer parameters.")] - public virtual void GiveItem(int type, string name, int width, int height, int stack, int prefix = 0) - { - int itemIndex = Item.NewItem((int)X, (int)Y, width, height, type, stack, true, prefix, true); - SendData(PacketTypes.ItemDrop, "", itemIndex); - } - /// /// Sends an information message to the player. ///