diff --git a/Server/Inventory/Interfaces/IDroppableItem.cs b/Server/Inventory/Interfaces/IDroppableItem.cs index 9f6e8c53..6f49aa59 100644 --- a/Server/Inventory/Interfaces/IDroppableItem.cs +++ b/Server/Inventory/Interfaces/IDroppableItem.cs @@ -12,7 +12,7 @@ using System.Text; namespace reallife_gamemode.Server.Inventory.Interfaces { - public interface IDroppableItem : IItem + public interface IDroppableItem : IUsableItem { void Drop(UserItem uItem, Client player, int amount); } diff --git a/Server/Inventory/Items/DropItem.cs b/Server/Inventory/Items/DropItem.cs index f8db7caf..5e883004 100644 --- a/Server/Inventory/Items/DropItem.cs +++ b/Server/Inventory/Items/DropItem.cs @@ -22,7 +22,7 @@ namespace reallife_gamemode.Server.Inventory.Items public void Drop(UserItem uItem, Client player, int amount) { player.SendNotification("Du hast ~g~" + amount + " ~y~" + InventoryManager.GetItemById(uItem.ItemId).Name + " ~s~weggeworfen.", false); - InventoryManager.RemoveUserItem(player.GetUser(), uItem); + InventoryManager.RemoveUserItem(player.GetUser(), uItem, amount); } } }