Fix two bugs (#12144)

This commit is contained in:
Leon Friedrich
2022-10-23 05:13:25 +13:00
committed by GitHub
parent b73d188e67
commit ac24d8ee25
2 changed files with 4 additions and 1 deletions

View File

@@ -285,7 +285,9 @@ namespace Content.Client.Hands.Systems
if (!Resolve(uid, ref handComp, ref sprite, false)) if (!Resolve(uid, ref handComp, ref sprite, false))
return; return;
OnPlayerItemAdded?.Invoke(hand.Name, held); // visual update might involve changes to the entity's effective sprite -> need to update hands GUI.
if (uid == _playerManager.LocalPlayer?.ControlledEntity)
OnPlayerItemAdded?.Invoke(hand.Name, held);
if (!handComp.ShowInHands) if (!handComp.ShowInHands)
return; return;

View File

@@ -58,6 +58,7 @@
- type: ItemSlots - type: ItemSlots
slots: slots:
charger_slot: charger_slot:
ejectOnInteract: true
whitelist: whitelist:
components: components:
- HitscanBatteryAmmoProvider - HitscanBatteryAmmoProvider