Skip to content

Commit 49569a7

Browse files
Merge pull request #210 from UchuServer/enhancement/hide-inventory-models
Hide Inventory Models In World
2 parents c5c59a6 + 42ea5ef commit 49569a7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Uchu.World/Objects/Components/Player/Concepts/Inventory.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ public async Task LoadItems(IEnumerable<InventoryItem> items)
113113
if (item != null)
114114
{
115115
Object.Start(item);
116+
item.Layer = StandardLayer.Hidden;
116117
}
117118
});
118119

@@ -129,6 +130,7 @@ public void AddItem(Item item)
129130
if (Items.Any(i => i.Slot == item.Slot))
130131
throw new InventorySlotOccupiedException();
131132
_items.Add(item);
133+
item.Layer = StandardLayer.Hidden;
132134
}
133135

134136
/// <summary>

0 commit comments

Comments
 (0)