]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fix duplicate popups in ripley (#23692)
authorArendian <137322659+Arendian@users.noreply.github.com>
Sun, 7 Jan 2024 23:32:46 +0000 (00:32 +0100)
committerGitHub <noreply@github.com>
Sun, 7 Jan 2024 23:32:46 +0000 (16:32 -0700)
Fix duplicate popups on switching selected equipment

Content.Shared/Mech/EntitySystems/SharedMechSystem.cs

index b4cd625824ed672d437a191f4579b16954d62336..7e44dea5078bfa82f3433a74c27c71dfb145836a 100644 (file)
@@ -191,7 +191,7 @@ public abstract class SharedMechSystem : EntitySystem
             ? Loc.GetString("mech-equipment-select-popup", ("item", component.CurrentSelectedEquipment))
             : Loc.GetString("mech-equipment-select-none-popup");
 
-        if (_timing.IsFirstTimePredicted)
+        if (_net.IsServer)
             _popup.PopupEntity(popupString, uid);
 
         Dirty(component);