fix weird behavior with storage HUD buttons (#27961)

This commit is contained in:
Nemanja
2024-05-12 21:07:52 -04:00
committed by GitHub
parent 993eef1e7c
commit 03af7fcdc1

View File

@@ -15,7 +15,7 @@ public partial class InventorySystem : EntitySystem
private void InitializeSlots()
{
SubscribeLocalEvent<InventoryComponent, ComponentInit>(OnInit);
SubscribeNetworkEvent<OpenSlotStorageNetworkMessage>(OnOpenSlotStorage);
SubscribeAllEvent<OpenSlotStorageNetworkMessage>(OnOpenSlotStorage);
_vvm.GetTypeHandler<InventoryComponent>()
.AddHandler(HandleViewVariablesSlots, ListViewVariablesSlots);