mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 04:57:27 +00:00
Reset player sync state when client has no cache
This commit is contained in:
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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user