Commit Graph

19 Commits

Author SHA1 Message Date
2a2cdc2d1a [ci skip] Add more patch identifying comments 2024-01-22 18:04:55 +01:00
f6bef3efe8 some patches 2023-12-05 15:12:48 -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
4aa42e8aea more more more more more work 2023-09-21 23:04:51 +02:00
524eeedaa8 So it begins... 2023-09-21 19:18:04 +02:00
9ffb4e1b63 More more more more work 2023-06-07 21:37:42 +02:00
1bda3d4d2a Start working on 1.20 2023-06-07 18:24:39 +02:00
8f5ec00c38 More more more patches 2023-03-14 19:59:51 +01:00
08ab8edb76 Start working on 1.19.4 2023-03-14 18:11:24 +01:00
d4e6ee3d12 Moar, fix API 2022-12-07 19:52:24 +01:00
b7dd55ce72 API patches 2022-12-07 17:46:46 +01:00
24201b38ce More work 2022-07-27 21:49:24 +02:00
858aabab7c Move patches over, start with first few 2022-07-27 20:52:03 +02:00
6632a409ae More more more more patches 2022-06-07 22:45:38 +02:00
1148687a8d Prepare for 1.19 dev 2022-06-07 18:52:56 +02:00
d8709b6bf1 More more more more more work 2021-11-23 15:03:50 +01:00
ed6d43ddb0 Prepare for updating server patches 2021-11-23 00:57:41 -08:00
3aae52d6f5 more patches (#5807) 2021-06-12 09:56:13 -07:00