Fix dice sprite error (#13628)

Fix https://github.com/space-wizards/space-station-14/issues/13627
This commit is contained in:
Leon Friedrich
2023-01-21 17:58:16 +13:00
committed by GitHub
parent a648e48cd8
commit a9b9dc0a10
3 changed files with 5 additions and 5 deletions

View File

@@ -21,7 +21,7 @@ public abstract class SharedDiceSystem : EntitySystem
private void OnHandleState(EntityUid uid, DiceComponent component, ref ComponentHandleState args)
{
if (args.Current is DiceComponent.DiceState state)
component.CurrentValue = state.CurrentSide;
component.CurrentValue = state.CurrentValue;
UpdateVisuals(uid, component);
}