void TryLoadInventory(IPlayer player) { this.Inventory.DiscardAll(); simpleinventory loadedinv = ApiExtensions.LoadOrCreateDataFile <simpleinventory>(Api, "helloworld.json"); if (loadedinv == null) { return; } this.MarkDirty(); }