Hotfix to check if certain objects have inventories or not.
This commit is contained in:
parent
3fd3723117
commit
e83e031568
|
@ -60,6 +60,18 @@ namespace Revitalize.Framework.Utilities
|
|||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Checks to see if this core object actually has a valid inventory.
|
||||
/// </summary>
|
||||
public bool HasInventory
|
||||
{
|
||||
get
|
||||
{
|
||||
if (this.capacity <= 0) return false;
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
public InventoryManager()
|
||||
{
|
||||
this.capacity = 0;
|
||||
|
|
Loading…
Reference in New Issue