From 9482144a19930af85a22b90d6c610101b629bece Mon Sep 17 00:00:00 2001 From: deltanedas <39013340+deltanedas@users.noreply.github.com> Date: Sat, 20 Apr 2024 13:51:56 +0000 Subject: [PATCH] disable rehydration prediction (#27166) Co-authored-by: deltanedas <@deltanedas:kde.org> --- Content.Shared/Chemistry/EntitySystems/RehydratableSystem.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Content.Shared/Chemistry/EntitySystems/RehydratableSystem.cs b/Content.Shared/Chemistry/EntitySystems/RehydratableSystem.cs index e260280ae4..36ca791290 100644 --- a/Content.Shared/Chemistry/EntitySystems/RehydratableSystem.cs +++ b/Content.Shared/Chemistry/EntitySystems/RehydratableSystem.cs @@ -1,12 +1,14 @@ using Content.Shared.Chemistry.Components; using Content.Shared.FixedPoint; using Content.Shared.Popups; +using Robust.Shared.Network; using Robust.Shared.Random; namespace Content.Shared.Chemistry.EntitySystems; public sealed class RehydratableSystem : EntitySystem { + [Dependency] private readonly INetManager _net = default!; [Dependency] private readonly IRobustRandom _random = default!; [Dependency] private readonly SharedPopupSystem _popup = default!; [Dependency] private readonly SharedSolutionContainerSystem _solutions = default!; @@ -31,6 +33,9 @@ public sealed class RehydratableSystem : EntitySystem // Try not to make this public if you can help it. private void Expand(Entity ent) { + if (_net.IsClient) + return; + var (uid, comp) = ent; var randomMob = _random.Pick(comp.PossibleSpawns); -- 2.52.0