Fix thrown item prediction weirdness (#35843)

Don't predict thrown item landing/stopping
This commit is contained in:
Tayrtahn
2025-03-15 02:06:00 -04:00
committed by GitHub
parent 5c5dc1207a
commit 23d7cd0a29

View File

@@ -145,6 +145,12 @@ namespace Content.Shared.Throwing
{
base.Update(frameTime);
// TODO predicted throwing - remove this check
// We don't want to predict landing or stopping, since throwing isn't actually predicted.
// If we do, the landing/stop will occur prematurely on the client.
if (_gameTiming.InPrediction)
return;
var query = EntityQueryEnumerator<ThrownItemComponent, PhysicsComponent>();
while (query.MoveNext(out var uid, out var thrown, out var physics))
{