Add unsafed Files

This commit is contained in:
VegaZ
2018-12-19 20:26:20 +01:00
parent a04cd81ede
commit 98d6ecb01a
2 changed files with 2 additions and 2 deletions

View File

@@ -12,7 +12,7 @@ using System.Text;
namespace reallife_gamemode.Server.Inventory.Interfaces namespace reallife_gamemode.Server.Inventory.Interfaces
{ {
public interface IDroppableItem : IItem public interface IDroppableItem : IUsableItem
{ {
void Drop(UserItem uItem, Client player, int amount); void Drop(UserItem uItem, Client player, int amount);
} }

View File

@@ -22,7 +22,7 @@ namespace reallife_gamemode.Server.Inventory.Items
public void Drop(UserItem uItem, Client player, int amount) public void Drop(UserItem uItem, Client player, int amount)
{ {
player.SendNotification("Du hast ~g~" + amount + " ~y~" + InventoryManager.GetItemById(uItem.ItemId).Name + " ~s~weggeworfen.", false); 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);
} }
} }
} }