Commit 964d484
committed
Fix world border speed: varlong, not varint (regressed in 1.19)
ClientboundInitializeBorderPacket and ClientboundSetBorderLerpSizePacket encode the
border lerp time as a VarLong in vanilla (long lerpTime, writeVarLong/readVarLong).
minecraft-data had speed correct as varlong in 1.17-1.18.2, but it regressed to varint
in 1.19 and was never fixed - wrong for every version from 1.19 to 1.21.11.
VarInt and VarLong encode identically below 2^28 ms (~74h), so this only breaks on long
(multi-day) border interpolations, where the multi-byte VarLong mis-parses as a VarInt.
Verified readVarLong/writeVarLong against the Mojang server jars for 1.19.4 and 1.21.3-1.21.9.
1.19 and 1.19.2 also needed varlong re-declared as a native type (it had been dropped when
the field regressed to varint and nothing else used it); later versions already declare it.
proto.yml edited, protocol.json regenerated with npm run build.1 parent a31412e commit 964d484
32 files changed
Lines changed: 68 additions & 64 deletions
File tree
- data/pc
- 1.19.2
- 1.19.3
- 1.19.4
- 1.19
- 1.20.2
- 1.20.3
- 1.20.5
- 1.20
- 1.21.11
- 1.21.1
- 1.21.3
- 1.21.4
- 1.21.5
- 1.21.6
- 1.21.8
- 1.21.9
- latest
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
1417 | 1418 | | |
1418 | 1419 | | |
1419 | 1420 | | |
1420 | | - | |
| 1421 | + | |
1421 | 1422 | | |
1422 | 1423 | | |
1423 | 1424 | | |
| |||
1429 | 1430 | | |
1430 | 1431 | | |
1431 | 1432 | | |
1432 | | - | |
| 1433 | + | |
1433 | 1434 | | |
1434 | 1435 | | |
1435 | 1436 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| |||
4745 | 4746 | | |
4746 | 4747 | | |
4747 | 4748 | | |
4748 | | - | |
| 4749 | + | |
4749 | 4750 | | |
4750 | 4751 | | |
4751 | 4752 | | |
| |||
4796 | 4797 | | |
4797 | 4798 | | |
4798 | 4799 | | |
4799 | | - | |
| 4800 | + | |
4800 | 4801 | | |
4801 | 4802 | | |
4802 | 4803 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1441 | 1441 | | |
1442 | 1442 | | |
1443 | 1443 | | |
1444 | | - | |
| 1444 | + | |
1445 | 1445 | | |
1446 | 1446 | | |
1447 | 1447 | | |
| |||
1453 | 1453 | | |
1454 | 1454 | | |
1455 | 1455 | | |
1456 | | - | |
| 1456 | + | |
1457 | 1457 | | |
1458 | 1458 | | |
1459 | 1459 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4829 | 4829 | | |
4830 | 4830 | | |
4831 | 4831 | | |
4832 | | - | |
| 4832 | + | |
4833 | 4833 | | |
4834 | 4834 | | |
4835 | 4835 | | |
| |||
4880 | 4880 | | |
4881 | 4881 | | |
4882 | 4882 | | |
4883 | | - | |
| 4883 | + | |
4884 | 4884 | | |
4885 | 4885 | | |
4886 | 4886 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1506 | 1506 | | |
1507 | 1507 | | |
1508 | 1508 | | |
1509 | | - | |
| 1509 | + | |
1510 | 1510 | | |
1511 | 1511 | | |
1512 | 1512 | | |
| |||
1518 | 1518 | | |
1519 | 1519 | | |
1520 | 1520 | | |
1521 | | - | |
| 1521 | + | |
1522 | 1522 | | |
1523 | 1523 | | |
1524 | 1524 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4979 | 4979 | | |
4980 | 4980 | | |
4981 | 4981 | | |
4982 | | - | |
| 4982 | + | |
4983 | 4983 | | |
4984 | 4984 | | |
4985 | 4985 | | |
| |||
5030 | 5030 | | |
5031 | 5031 | | |
5032 | 5032 | | |
5033 | | - | |
| 5033 | + | |
5034 | 5034 | | |
5035 | 5035 | | |
5036 | 5036 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
1378 | 1379 | | |
1379 | 1380 | | |
1380 | 1381 | | |
1381 | | - | |
| 1382 | + | |
1382 | 1383 | | |
1383 | 1384 | | |
1384 | 1385 | | |
| |||
1390 | 1391 | | |
1391 | 1392 | | |
1392 | 1393 | | |
1393 | | - | |
| 1394 | + | |
1394 | 1395 | | |
1395 | 1396 | | |
1396 | 1397 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| |||
4624 | 4625 | | |
4625 | 4626 | | |
4626 | 4627 | | |
4627 | | - | |
| 4628 | + | |
4628 | 4629 | | |
4629 | 4630 | | |
4630 | 4631 | | |
| |||
4675 | 4676 | | |
4676 | 4677 | | |
4677 | 4678 | | |
4678 | | - | |
| 4679 | + | |
4679 | 4680 | | |
4680 | 4681 | | |
4681 | 4682 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1580 | 1580 | | |
1581 | 1581 | | |
1582 | 1582 | | |
1583 | | - | |
| 1583 | + | |
1584 | 1584 | | |
1585 | 1585 | | |
1586 | 1586 | | |
| |||
1592 | 1592 | | |
1593 | 1593 | | |
1594 | 1594 | | |
1595 | | - | |
| 1595 | + | |
1596 | 1596 | | |
1597 | 1597 | | |
1598 | 1598 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5198 | 5198 | | |
5199 | 5199 | | |
5200 | 5200 | | |
5201 | | - | |
| 5201 | + | |
5202 | 5202 | | |
5203 | 5203 | | |
5204 | 5204 | | |
| |||
5249 | 5249 | | |
5250 | 5250 | | |
5251 | 5251 | | |
5252 | | - | |
| 5252 | + | |
5253 | 5253 | | |
5254 | 5254 | | |
5255 | 5255 | | |
| |||
0 commit comments