Fix gun bolt crash (#24283)

Deleting non-predicted entities moment.
This commit is contained in:
metalgearsloth
2024-01-19 21:14:41 +11:00
committed by GitHub
parent 8364086369
commit b535909a49

View File

@@ -232,7 +232,10 @@ public abstract partial class SharedGunSystem
{
foreach (var (ent, _) in relayedArgs.Ammo)
{
Del(ent!.Value);
if (!IsClientSide(ent!.Value))
continue;
Del(ent.Value);
}
}
}