- Timestamp:
- Jun 12, 2023, 3:21:34 PM (17 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements/AllocsCommands/Commands/ShowInventory.cs
r420 r446 1 using System;2 1 using System.Collections.Generic; 3 2 using AllocsFixes.PersistentData; … … 30 29 } 31 30 32 Pla tformUserIdentifierAbs steamid = PersistentContainer.Instance.Players.GetSteamID(_params [0], true);33 if ( steamid== null) {31 Player p = PersistentContainer.Instance.Players.GetByString (_params [0], true); 32 if (p == null) { 34 33 SdtdConsole.Instance.Output ( 35 34 "Playername or entity/steamid id not found or no inventory saved (first saved after a player has been online for 30s)."); … … 42 41 } 43 42 44 Player p = PersistentContainer.Instance.Players [steamid, false];45 43 PersistentData.Inventory inv = p.Inventory; 46 44 … … 164 162 } 165 163 166 DoParts (_parts [i].parts, _indent + 1, _currentMessage);164 DoParts (_parts [i].parts, _indent + 1, null); 167 165 } else { 168 166 // currentMessage given -> parseable output
Note:
See TracChangeset
for help on using the changeset viewer.