From e83e031568a73f0fd532a0312cb4b046b3286616 Mon Sep 17 00:00:00 2001 From: Joshua Navarro Date: Mon, 24 Dec 2018 15:06:42 -0800 Subject: [PATCH] Hotfix to check if certain objects have inventories or not. --- .../Framework/Utilities/InventoryManager.cs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/GeneralMods/Revitalize/Framework/Utilities/InventoryManager.cs b/GeneralMods/Revitalize/Framework/Utilities/InventoryManager.cs index 93fd67af..e127fa7a 100644 --- a/GeneralMods/Revitalize/Framework/Utilities/InventoryManager.cs +++ b/GeneralMods/Revitalize/Framework/Utilities/InventoryManager.cs @@ -60,6 +60,18 @@ namespace Revitalize.Framework.Utilities } } + /// + /// Checks to see if this core object actually has a valid inventory. + /// + public bool HasInventory + { + get + { + if (this.capacity <= 0) return false; + return true; + } + } + public InventoryManager() { this.capacity = 0;