Fixes server crashing when attempting to drop an empty hand's contained entity. (#66)
* fixes server crash on empty hand drop Fixes issue with server crashing when client requests for an empty hand to drop its entity. * fixes drop crash by checking for null in container contains * removes old change - time to learn to reset properly
This commit is contained in:
@@ -31,7 +31,7 @@ namespace Content.Server.GameObjects
|
|||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
public override bool Contains(IEntity contained)
|
public override bool Contains(IEntity contained)
|
||||||
{
|
{
|
||||||
if (contained == ContainedEntity)
|
if (contained != null && contained == ContainedEntity)
|
||||||
return true;
|
return true;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user