diff --git a/mods/HookParser.cs b/mods/HookParser.cs index 3bd496f..d4bc9a7 100644 --- a/mods/HookParser.cs +++ b/mods/HookParser.cs @@ -4,7 +4,7 @@ namespace Oxide.Plugins; -[Info("Hook Parser", "Takaro", "0.0.1")] +[Info("Hook Parser", "Takaro", "0.0.2")] internal class HookParser : RustPlugin { #region Oxide Hooks diff --git a/mods/ViewInventory.cs b/mods/ViewInventory.cs index 839bc13..f1ac9d9 100644 --- a/mods/ViewInventory.cs +++ b/mods/ViewInventory.cs @@ -4,7 +4,7 @@ namespace Oxide.Plugins; -[Info("ViewInventory", "Takaro", "0.0.1")] +[Info("ViewInventory", "Takaro", "0.0.2")] internal class ViewInventory : RustPlugin { [ConsoleCommand("viewinventory")] @@ -32,7 +32,7 @@ private void CmdViewInventory(ConsoleSystem.Arg arg) return; } - string inventoryJson = ConvertItemsToJson(player.inventory.AllItems()); + string inventoryJson = ConvertItemsToJson(player.inventory.containerMain.itemList); CmdResponse response = new(player.displayName, player.UserIDString, player.net.ID.ToString(), inventoryJson);