Commit Graph

18 Commits

Author SHA1 Message Date
7725b39a8f patches ... 2023-12-05 20:00:14 -07:00
46f4547805 Prepare for 1.20.3 dev 2023-12-05 18:20:55 +01:00
1fa2b7d2f5 Dont resend blocks on interactions (#9413)
In general, the client now has an acknowledgment system that will cause block changes made by the client to be reverted correctly.

Essentially:

The client enters a "prediction" stage, where any block changes made will have its old blockstate captured (this is referred to as "server state").
If you update blocks during this stage, the client will update this captured server state as long as they're still currently predicting.
After prediction is done (via an ack packet) all captured blockstates are reverted to their captured server state.
This means that if the server actually updated a block and send a block update packet, it's correctly set, while if a block wasn't updated on the server but WAS updated on the client (server state wasn't updated), that change will be reverted.

It should be noted that this system does not yet support block entities, so those still need to be resynced when needed.

I discovered this when noticing that blocks broken outside of the player's valid interaction distance are still properly reverted, even though the server doesn't send any block updates, only an ack packet.
2023-12-02 22:41:35 -05:00
96a63dfb9d almost halfway done with server patches 2023-09-21 21:40:51 -07:00
524eeedaa8 So it begins... 2023-09-21 19:18:04 +02:00
752fd058f1 45 more patches 2023-06-07 16:56:33 -07:00
1bda3d4d2a Start working on 1.20 2023-06-07 18:24:39 +02:00
0fa58eada1 More more more more more more patches 2023-03-14 21:25:13 +01:00
08ab8edb76 Start working on 1.19.4 2023-03-14 18:11:24 +01:00
00dec09758 Patching patched patched patches 2022-12-07 21:16:54 +01:00
b7dd55ce72 API patches 2022-12-07 17:46:46 +01:00
f7123fdddb More more more more work 2022-07-27 22:55:55 +02:00
858aabab7c Move patches over, start with first few 2022-07-27 20:52:03 +02:00
88d7a4ed1d bag o' patches 2022-06-08 00:30:41 -07:00
1148687a8d Prepare for 1.19 dev 2022-06-07 18:52:56 +02:00
66f71cd1e8 updated more patches 2021-11-24 09:37:07 -08:00
ed6d43ddb0 Prepare for updating server patches 2021-11-23 00:57:41 -08:00
38bf247e27 more patches 2021-06-14 11:50:22 -07:00