From 30abd3742e9a1167a12627ddc21616d686234d4f Mon Sep 17 00:00:00 2001 From: Niek Candaele Date: Mon, 30 Dec 2024 18:46:29 +0100 Subject: [PATCH] fix: some compatibility fixes for Rust mods --- mods/HookParser.cs | 2 +- mods/ViewInventory.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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);