Reset player sync state when client has no cache

This commit is contained in:
Kam committed 2025-10-21 02:36:34 -04:00
1 parent e73b5f3897
commit 1e7ee84098
1 file changed
+9 -1
@@ -153,7 +153,15 @@ public class SyncController {
}
}
state.applyHandshake(clientRevisions);
if (clientRevisions == null || clientRevisions.isEmpty()) {
debug(
"Client %s reported no cached revisions; forcing full sync",
player.getCommandSenderName()
);
state.reset();
} else {
state.applyHandshake(clientRevisions);
}
syncPlayer(player);
}