Dylan K. Taylor
a31e3331fd
Move Server::broadcastPackets() to NetworkBroadcastUtils::broadcastPackets()
...
this has no business being in Server, and it also doesn't need to be an instance method, since it never uses $this.
2023-03-15 22:25:23 +00:00
Dylan K. Taylor
cc8660629b
First look at shared EntityEventBroadcaster,
...
this improves performance in PvP servers and other areas where lots of players or entities exist in one space.
fixes #5622
2023-03-15 18:22:56 +00:00
Dylan K. Taylor
e7e19abe85
IPv4 and IPv6 RakLibInterface instances now both use the same broadcaster and context
...
fixes #5625
2023-03-15 17:17:56 +00:00
Dylan K. Taylor
72853677bb
Fixed mushroom blocks for PM5
...
closes #5284
2023-03-15 16:54:13 +00:00
Dylan K. Taylor
5f9e0081fd
Fixed mushroom block silk-touch drops and block picking behaviour
...
fixes #5284
2023-03-15 16:36:35 +00:00
Dylan K. Taylor
4ba4d556ed
Tidy up world version related things
...
I decided to scrap the max schema ID stuff, since it just adds extra places to forget updating. Instead, it's better to use minor version locks and version metadata, as we do for BedrockData and BedrockProtocol.
2023-03-14 23:27:16 +00:00
Dylan K. Taylor
6c29c3d2dd
Merge branch 'item-stack-request' into item-stack-request-pm5
2023-03-14 22:56:47 +00:00
Dylan K. Taylor
34ced382db
Eliminate final remaining usage of TypeConverter::netItemStackToCore()
...
instead, we can verify that the held items match by comparing the received ItemStack with the one cached in InventoryManager, which is more cost effective and closes off internal item deserializers to external attacks.
2023-03-14 22:56:11 +00:00
Dylan K. Taylor
dace20ad1f
Merge branch 'item-stack-request' into item-stack-request-pm5
2023-03-14 22:34:47 +00:00
Dylan K. Taylor
a573a279fa
Merge branch 'minor-next' into item-stack-request
2023-03-14 22:25:49 +00:00
Dylan K. Taylor
14f141fab2
NetworkSession: Stop counting DataPacketReceiveEvent in handler timings
...
we want it to be included in receive timings, but not handler timings. Handler timings should reflect the time spent in the actual session PacketHandler, not in the event.
2023-03-14 19:00:15 +00:00
Dylan K. Taylor
777b4d6ac3
PM5-specific updates for 1.19.70
2023-03-14 18:50:04 +00:00
Dylan K. Taylor
c500ccd891
Merge branch 'minor-next' into major-next
2023-03-14 18:43:43 +00:00
Dylan K. Taylor
daff955bc4
Merge remote-tracking branch 'origin/stable' into minor-next
2023-03-14 18:42:14 +00:00
Dylan K. Taylor
cc69383b6f
Merge branch 'minor-next' into major-next
2023-03-14 18:40:57 +00:00
Dylan K. Taylor
0022d82779
Merge commit 'd376399b7f332384532a82eaf69b9b02dad5bd0c' into minor-next
2023-03-14 18:39:03 +00:00
Dylan K. Taylor
590f6dad08
4.17.1 is next
2023-03-14 18:14:40 +00:00
Dylan K. Taylor
9564c81582
Release 4.17.0
2023-03-14 18:14:40 +00:00
Dylan K. Taylor
3de7a8c27f
Updated for 1.19.70
2023-03-14 18:08:10 +00:00
Dylan K. Taylor
a123194368
BlockStateData: added getVersionAsString()
2023-03-13 16:14:19 +00:00
Dylan K. Taylor
8e280ebb8b
RuntimeBlockMapping: avoid unnecessary PacketSerializer usage
2023-03-11 22:16:24 +00:00
Dylan K. Taylor
f03afba10e
Merge branch 'minor-next' into major-next
2023-03-11 22:13:31 +00:00
Dylan K. Taylor
fa7c38276c
Fixing gigantic clusterfuck with protocol contexts and broadcasting
...
fixes #5623
2023-03-11 21:54:14 +00:00
Dylan K. Taylor
b13e97de3d
Timings: fixed receivePacket timer showing 2x the actual number of received packets
2023-03-11 19:13:10 +00:00
Dylan K. Taylor
9b1ec261c4
...
2023-03-08 22:20:12 +00:00
Dylan K. Taylor
6151576baa
Added model for smithing recipe
2023-03-08 21:50:03 +00:00
Dylan K. Taylor
fff8f0f815
Use Item->canStackWith() instead of Item->equals() wherever possible
2023-03-07 17:08:35 +00:00
Dylan K. Taylor
867b8945e4
5.0.0-BETA2 is next
2023-03-07 16:51:57 +00:00
Dylan K. Taylor
9e329d55a8
Release 5.0.0-BETA1
2023-03-07 16:51:53 +00:00
Dylan K. Taylor
3aec0fa3df
4.16.1 is next
2023-03-07 16:19:51 +00:00
Dylan K. Taylor
fa131dab12
Release 4.16.0
2023-03-07 16:19:50 +00:00
Dylan K. Taylor
8933064cd5
Fixed missing blockstate upgrader
2023-03-06 17:02:33 +00:00
Dylan K. Taylor
6db2b022fb
Merge branch 'next-minor' into next-major
2023-03-04 16:58:03 +00:00
Dylan K. Taylor
e227e6d8bf
Merge branch 'stable' into next-minor
2023-03-04 16:55:56 +00:00
Dylan K. Taylor
035d4b7263
MemoryManager: stringify floats, fixes #5598
2023-03-04 16:47:58 +00:00
Dylan K. Taylor
3db1492c18
Fix CS again
2023-03-04 16:43:29 +00:00
Dylan K. Taylor
a523189149
Added separate timings for broadcast and session buffer compression
2023-03-04 16:41:41 +00:00
Dylan K. Taylor
f8893efb94
Don't bother with global batch compression if there is only 1 recipient
...
this allows the session to achieve better ratios, and also reduces worker pool spam.
2023-03-04 16:34:00 +00:00
Dylan K. Taylor
eb2f0ed3d0
4.16.0-BETA3 is next
2023-03-04 16:19:34 +00:00
Dylan K. Taylor
14e7d3e143
Release 4.16.0-BETA2
2023-03-04 16:19:34 +00:00
Dylan K. Taylor
6d636fc2c7
4.16.0-BETA2 is next
2023-03-04 16:18:04 +00:00
Dylan K. Taylor
a39f61a33d
Release 4.16.0-BETA1
2023-03-04 16:18:01 +00:00
Dylan K. Taylor
5eeb63f64b
always the CS ...
2023-03-04 15:52:57 +00:00
Dylan K. Taylor
b9d62de29d
Pack wall connections into 7 bits for runtime data encoding
2023-03-04 15:47:34 +00:00
Dylan K. Taylor
aaec21f544
Compressor: Use minCompressionThreshold exclusively
...
closes #5589
2023-03-04 15:07:50 +00:00
Dylan K. Taylor
95c18ef99a
Block: change confusing naming of decode/computeStateData
...
these actually accept a combination of type and state data, so it's a bit inconsistent with other references to 'state data'.
2023-03-02 17:42:44 +00:00
Dylan K. Taylor
972f107972
Block: added documentation for describeType() and describeState()
2023-03-02 17:31:52 +00:00
Dylan K. Taylor
e15e53859f
tidy
2023-03-02 17:25:48 +00:00
Dylan K. Taylor
4692552fdc
Block: improve documentation of type ID and state ID
2023-03-02 16:32:33 +00:00
Dylan K. Taylor
cbb58d3e0d
Block: reduce method placement chaos
2023-03-02 16:23:40 +00:00