Stop spectating when applying camera keyframe

This commit is contained in:
Moulberry committed 2025-02-11 18:00:05 +08:00
1 parent f8406e428e
commit 2e9423478f
4 files changed
+22

No files matched your search

@@ -905,6 +905,7 @@ public class ReplayServer extends IntegratedServer {
if (targetEntity != null && !targetEntity.isRemoved()) {
replayViewer.setCamera(null);
replayViewer.setCamera(targetEntity);
replayViewer.spectatingUuid = targetEntity.getUUID();
if (replayViewer.forceRespectateTickCount == 0) {
replayViewer.forceRespectateTickCount = 5;