Fixes inventories and throwing. (#133)

This commit is contained in:
Acruid
2018-12-13 05:49:05 -08:00
committed by Pieter-Jan Briers
parent 37df61113e
commit 69946c79d8
4 changed files with 18 additions and 12 deletions

View File

@@ -233,7 +233,6 @@ namespace Content.Server.GameObjects
return true;
}
public bool Drop(IEntity entity)
{
if (entity == null)
@@ -252,6 +251,16 @@ namespace Content.Server.GameObjects
public bool Drop(string slot, BaseContainer targetContainer)
{
if (slot == null)
{
throw new ArgumentNullException(nameof(slot));
}
if (targetContainer == null)
{
throw new ArgumentNullException(nameof(targetContainer));
}
if (!CanDrop(slot))
{
return false;