Fix slot interactions (again) (#11903)

This commit is contained in:
Leon Friedrich
2022-10-14 07:35:10 +13:00
committed by GitHub
parent 5b962f651e
commit 15d92c39fe
2 changed files with 3 additions and 9 deletions

View File

@@ -236,7 +236,7 @@ namespace Content.Client.Inventory
public void UIInventoryStorageActivate(string slot)
{
EntityManager.RaisePredictiveEvent(new OpenSlotStorageNetworkMessage(slot));
EntityManager.EntityNetManager?.SendSystemNetworkMessage(new OpenSlotStorageNetworkMessage(slot));
}
public void UIInventoryExamine(string slot, EntityUid uid)
@@ -260,7 +260,7 @@ namespace Content.Client.Inventory
if (!TryGetSlotEntity(uid, slot, out var item))
return;
EntityManager.EntityNetManager?.SendSystemNetworkMessage(
EntityManager.RaisePredictiveEvent(
new InteractInventorySlotEvent(item.Value, altInteract: false));
}