Gatt
|
627bc14b56
|
Fix shaped recipe read (take 2) (#573)
|
2022-01-10 16:51:21 +01:00 |
|
themode
|
206d93ed1b
|
Revert "fix declare shaped packet reader (#572)"
This reverts commit d94d07bead .
|
2022-01-10 16:51:21 +01:00 |
|
Gatt
|
ca2d708a40
|
fix declare shaped packet reader (#572)
|
2022-01-10 16:51:21 +01:00 |
|
Gatt
|
2fff62efd2
|
Fix DeclareRecipePacket (#562)
|
2022-01-10 16:51:21 +01:00 |
|
themode
|
204089d53d
|
acquire/release
|
2022-01-10 16:51:21 +01:00 |
|
themode
|
b79054f8e8
|
Opaque ordering for LazyPacket
|
2022-01-10 16:51:21 +01:00 |
|
themode
|
10d40dd19d
|
Use opaque memory ordering for cached packets
|
2022-01-10 16:51:21 +01:00 |
|
themode
|
91a8607710
|
Fix MultiBlockChangePacket read
|
2022-01-10 16:51:21 +01:00 |
|
themode
|
c5728a2df1
|
MultiBlockChangePacket use a var long array
|
2022-01-10 16:51:21 +01:00 |
|
Gatt
|
b8d51df58e
|
Fix ChunkData including "fake" Block Entities (#556)
|
2022-01-10 16:51:21 +01:00 |
|
themode
|
90e88dc6e7
|
Improve map packet
|
2022-01-10 16:51:21 +01:00 |
|
themode
|
3972477b3b
|
Misc connection improvements
|
2022-01-10 16:51:21 +01:00 |
|
themode
|
fd4a4d531e
|
Use jctools for waiting players
|
2022-01-10 16:51:21 +01:00 |
|
themode
|
8ae02109b9
|
Avoid unnecessary volatile read
|
2022-01-10 16:51:21 +01:00 |
|
themode
|
6aaf5aa0ce
|
Remove the concept of non-shared attribute
|
2022-01-10 16:51:21 +01:00 |
|
Bloepiloepi
|
18814f77e2
|
Fixed EntityPropertiesPacket base value (#545)
|
2022-01-10 16:51:21 +01:00 |
|
themode
|
39a0923326
|
Add LazyPacket
|
2022-01-10 16:51:21 +01:00 |
|
themode
|
7df51ef606
|
Simplify CachedPacket
|
2022-01-10 16:51:21 +01:00 |
|
themode
|
bb1b1e53d7
|
Improve performance when cached packets are disabled
|
2022-01-10 16:51:21 +01:00 |
|
TheMode
|
deda87ecb2
|
Improve PlayerInfoPacket
Signed-off-by: TheMode <themode@outlook.fr>
|
2022-01-10 16:51:21 +01:00 |
|
TheMode
|
5b4ffa0846
|
Add SendablePacket#extractServerPacket
Signed-off-by: TheMode <themode@outlook.fr>
|
2022-01-10 16:51:21 +01:00 |
|
TheMode
|
076b11b77a
|
Separate concern for packet reading
Signed-off-by: TheMode <themode@outlook.fr>
|
2022-01-10 16:51:21 +01:00 |
|
TheMode
|
987c563255
|
Add more packets to test
Signed-off-by: TheMode <themode@outlook.fr>
|
2022-01-10 16:51:21 +01:00 |
|
TheMode
|
817bb32c3a
|
Remove duplicate constructor
Signed-off-by: TheMode <themode@outlook.fr>
|
2022-01-10 16:51:21 +01:00 |
|
TheMode
|
14d6a0993b
|
Use writeByteArray
Signed-off-by: TheMode <themode@outlook.fr>
|
2022-01-10 16:51:21 +01:00 |
|
TheMode
|
e56d82eb2a
|
Misc improvements
Signed-off-by: TheMode <themode@outlook.fr>
|
2022-01-10 16:51:21 +01:00 |
|
Xavier Niochaut
|
9ab4277502
|
Port to Hephaistos v2 (#424)
|
2022-01-10 16:51:21 +01:00 |
|
MrGazdag
|
f43ffd64cb
|
fix bungeecord pinging (#538)
|
2022-01-10 16:51:21 +01:00 |
|
TheMode
|
e28a847e73
|
Fix UpdateTeamAction
Signed-off-by: TheMode <themode@outlook.fr>
|
2022-01-10 16:51:21 +01:00 |
|
TheMode
|
bef4fe37b3
|
Avoid potential packet allocation in CachedPacket#packet
Signed-off-by: TheMode <themode@outlook.fr>
|
2022-01-10 16:51:21 +01:00 |
|
TheMode
|
74aceda0ad
|
More cleanup
Signed-off-by: TheMode <themode@outlook.fr>
|
2022-01-10 16:51:21 +01:00 |
|
TheMode
|
22a8ccabfa
|
Fix notifications
Signed-off-by: TheMode <themode@outlook.fr>
|
2022-01-10 16:51:21 +01:00 |
|
TheMode
|
9083f87153
|
Cleanup
Signed-off-by: TheMode <themode@outlook.fr>
|
2022-01-10 16:51:21 +01:00 |
|
TheMode
|
9d26fa8137
|
Make LightData record
Signed-off-by: TheMode <themode@outlook.fr>
|
2022-01-10 16:51:21 +01:00 |
|
TheMode
|
9e24aaab77
|
Cleanup
Signed-off-by: TheMode <themode@outlook.fr>
|
2022-01-10 16:51:21 +01:00 |
|
TheMode
|
8c72bee1dd
|
Cleanup
Signed-off-by: TheMode <themode@outlook.fr>
|
2022-01-10 16:51:21 +01:00 |
|
TheMode
|
9a90018a8b
|
Move warning to constructor
Signed-off-by: TheMode <themode@outlook.fr>
|
2022-01-10 16:51:21 +01:00 |
|
TheMode
|
8f8ee4f7d2
|
Packets are value based
Signed-off-by: TheMode <themode@outlook.fr>
|
2022-01-10 16:51:21 +01:00 |
|
TheMode
|
bc5f5dd8ee
|
Simplify metadata code
Signed-off-by: TheMode <themode@outlook.fr>
|
2022-01-10 16:51:21 +01:00 |
|
TheMode
|
7794337ca7
|
Style
Signed-off-by: TheMode <themode@outlook.fr>
|
2022-01-10 16:51:21 +01:00 |
|
TheMode
|
05de99f45f
|
immutable packets (record) (#528)
|
2022-01-10 16:51:21 +01:00 |
|
TheMode
|
9dd1e4a550
|
Add allowsListing to settings packet
Signed-off-by: TheMode <themode@outlook.fr>
|
2022-01-10 16:51:21 +01:00 |
|
TheMode
|
f4db54d6e5
|
Include block nbt fix
Signed-off-by: TheMode <themode@outlook.fr>
|
2022-01-10 16:51:21 +01:00 |
|
TheMode
|
e3b59c3b95
|
Make new packets record (reading method still to be defined)
Signed-off-by: TheMode <themode@outlook.fr>
|
2022-01-10 16:51:21 +01:00 |
|
TheMode
|
eb6b37f20b
|
Retrieve block entity id
Signed-off-by: TheMode <themode@outlook.fr>
|
2022-01-10 16:51:21 +01:00 |
|
TheMode
|
86ac1a4471
|
Fix read
Signed-off-by: TheMode <themode@outlook.fr>
|
2022-01-10 16:51:21 +01:00 |
|
TheMode
|
4ac89eaa33
|
Update BlockEntityDataPacket
Signed-off-by: TheMode <themode@outlook.fr>
|
2022-01-10 16:51:21 +01:00 |
|
TheMode
|
a94cc20dba
|
Default simulation distance to view distance
Signed-off-by: TheMode <themode@outlook.fr>
|
2022-01-10 16:51:21 +01:00 |
|
TheMode
|
f12b1e1e58
|
Use a byte array to avoid synchronization
Signed-off-by: TheMode <themode@outlook.fr>
|
2022-01-10 16:51:21 +01:00 |
|
TheMode
|
972e15a62b
|
Add basic block entity support, simplify code
Signed-off-by: TheMode <themode@outlook.fr>
|
2022-01-10 16:51:21 +01:00 |
|
TheMode
|
201b5500b9
|
Fix chunk loading
Signed-off-by: TheMode <themode@outlook.fr>
|
2022-01-10 16:51:21 +01:00 |
|
TheMode
|
d3b55700e2
|
Initial non-working 1.18 commit
Signed-off-by: TheMode <themode@outlook.fr>
|
2022-01-10 16:51:21 +01:00 |
|
TheMode
|
02de469cad
|
Use relaxedOffer, copy packet list to prevent modifications
Signed-off-by: TheMode <themode@outlook.fr>
|
2021-11-21 14:34:24 +01:00 |
|
TheMode
|
8005d2bb3f
|
Rollback worker thread count to be Runtime#availableProcessors()
Signed-off-by: TheMode <themode@outlook.fr>
|
2021-11-21 14:12:11 +01:00 |
|
TheMode
|
81553e2816
|
Separate worker construction from start
Signed-off-by: TheMode <themode@outlook.fr>
|
2021-11-21 12:51:13 +01:00 |
|
TheMode
|
fc3fbe83f0
|
Change queue for inbound packets
Signed-off-by: TheMode <themode@outlook.fr>
|
2021-11-20 11:56:35 +01:00 |
|
TheMode
|
767c743e01
|
Batch sendPackets list content in a single message
Signed-off-by: TheMode <themode@outlook.fr>
|
2021-11-17 23:12:54 +01:00 |
|
TheMode
|
750e9b5324
|
Add packet doc
Signed-off-by: TheMode <themode@outlook.fr>
|
2021-11-17 21:14:10 +01:00 |
|
TheMode
|
69e9b31fa4
|
Add few try-catches
Signed-off-by: TheMode <themode@outlook.fr>
|
2021-11-17 09:33:11 +01:00 |
|
TheMode
|
785bcb8b6d
|
Fast exit if tick buffer can be reused
Signed-off-by: TheMode <themode@outlook.fr>
|
2021-11-17 09:20:36 +01:00 |
|
TheMode
|
cecaab762d
|
Use a MpscGrowableArrayQueue
Signed-off-by: TheMode <themode@outlook.fr>
|
2021-11-17 09:20:04 +01:00 |
|
TheMode
|
6920a6e8a5
|
Use a CachedPacket to store default tags
Signed-off-by: TheMode <themode@outlook.fr>
|
2021-11-17 08:13:31 +01:00 |
|
TheMode
|
8b1856d5b7
|
Async packet write (#533)
|
2021-11-17 06:31:24 +01:00 |
|
TheMode
|
c5e947c76e
|
Move CachedPacket and FramedPacket
Signed-off-by: TheMode <themode@outlook.fr>
|
2021-11-17 00:48:43 +01:00 |
|
TheMode
|
a4522e44ed
|
Flush in worker threads
Signed-off-by: TheMode <themode@outlook.fr>
|
2021-11-16 21:53:33 +01:00 |
|
TheMode
|
dc6a520ab5
|
Add properties for grouped, cached & viewable packets (#524)
|
2021-11-10 22:34:21 +01:00 |
|
TheMode
|
ae08ac2987
|
Do not flush if channel is closed
Signed-off-by: TheMode <themode@outlook.fr>
|
2021-11-08 09:11:02 +01:00 |
|
TheMode
|
5e10876c2a
|
Add max packet size property
Signed-off-by: TheMode <themode@outlook.fr>
|
2021-11-07 12:19:25 +01:00 |
|
TheMode
|
7a4086c889
|
Reduce default socket send buffer size
Signed-off-by: TheMode <themode@outlook.fr>
|
2021-11-05 06:26:41 +01:00 |
|
TheMode
|
acc711c640
|
Revert "Volatile encryption (#515)" (#516)
This reverts commit 0f15d4a273 .
|
2021-11-03 09:17:23 +01:00 |
|
TheMode
|
0f15d4a273
|
Volatile encryption (#515)
|
2021-11-03 09:06:06 +01:00 |
|
TheMode
|
970d4d2d9c
|
Allow buffer index/length to be specified
Signed-off-by: TheMode <themode@outlook.fr>
|
2021-11-02 03:08:36 +01:00 |
|
TheMode
|
b7ad2fef5c
|
Send complete block nbt if no handler is present
Signed-off-by: TheMode <themode@outlook.fr>
|
2021-10-26 17:44:01 +02:00 |
|
TheMode
|
f86d91f9b8
|
Fix online mode
Signed-off-by: TheMode <themode@outlook.fr>
|
2021-10-26 00:44:16 +02:00 |
|
TheMode
|
23d59cb135
|
Returned framed buffers should be flipped
Signed-off-by: TheMode <themode@outlook.fr>
|
2021-10-26 00:05:03 +02:00 |
|
TheMode
|
00401bed25
|
Avoid allocation when writing framed packets
Signed-off-by: TheMode <themode@outlook.fr>
|
2021-10-25 23:55:20 +02:00 |
|
TheMode
|
1851ea7eca
|
Move OOM try-catch
Signed-off-by: TheMode <themode@outlook.fr>
|
2021-10-25 10:08:25 +02:00 |
|
themode
|
13eade4e35
|
Workers should be minestom threads
|
2021-10-22 03:09:32 +02:00 |
|
TheMode
|
7891cc5bbe
|
Use more instanceof pattern matching
Signed-off-by: TheMode <themode@outlook.fr>
|
2021-10-22 02:19:38 +02:00 |
|
TheMode
|
5030664ff9
|
Use more enhanced switches
Signed-off-by: TheMode <themode@outlook.fr>
|
2021-10-22 02:14:12 +02:00 |
|
TheMode
|
b308ce5baa
|
Update to Java 17 (#462)
|
2021-10-22 01:55:55 +02:00 |
|
TheMode
|
3685bf22b7
|
Improve CachedPacket
Signed-off-by: TheMode <themode@outlook.fr>
|
2021-10-19 12:41:34 +02:00 |
|
Corey Shupe
|
11d0f82b86
|
Make Mojang SessionServer Configurable (#499)
|
2021-10-19 10:11:04 +02:00 |
|
TheMode
|
06189ee783
|
Async flush (#492)
|
2021-10-16 19:55:24 +02:00 |
|
TheMode
|
21b751dbd1
|
Reduce default worker thread count
Signed-off-by: TheMode <themode@outlook.fr>
|
2021-10-13 12:37:54 +02:00 |
|
TheMode
|
bd4aa90753
|
Framed packet cleanup (#489)
|
2021-10-13 06:33:44 +02:00 |
|
TheMode
|
11806b9166
|
Ensure no packet corruption due to encryption. A proxy is still recommended for optimal performance
Signed-off-by: TheMode <themode@outlook.fr>
|
2021-10-06 21:14:08 +02:00 |
|
TheMode
|
2f1e4101d1
|
Add more try-catch to prevent the worker from returning
Signed-off-by: TheMode <themode@outlook.fr>
|
2021-10-06 18:47:40 +02:00 |
|
Matt Worzala
|
d89e5cf2ee
|
Hardcode heightmap value to dimension height. (#481)
|
2021-10-05 23:29:05 +02:00 |
|
TheMode
|
36bcf69728
|
Buffer collection cleaner
Signed-off-by: TheMode <themode@outlook.fr>
|
2021-09-29 18:31:28 +02:00 |
|
TheMode
|
236683c986
|
No volatile read for compression/encryption
Signed-off-by: TheMode <themode@outlook.fr>
|
2021-09-26 17:02:05 +02:00 |
|
TheMode
|
68107c9a90
|
Reuse the tick buffer when possible & avoid iteration
Signed-off-by: TheMode <themode@outlook.fr>
|
2021-09-22 23:24:22 +02:00 |
|
TheMode
|
e97f1db184
|
Call Player#remove on server shutdown
Signed-off-by: TheMode <themode@outlook.fr>
|
2021-09-21 19:30:36 +02:00 |
|
TheMode
|
2c4ea3c3c4
|
Serialize/Compress tag packet only once
Signed-off-by: TheMode <themode@outlook.fr>
|
2021-09-20 19:34:43 +02:00 |
|
TheMode
|
8f3e8c5a13
|
Remove players during their next tick
Signed-off-by: TheMode <themode@outlook.fr>
|
2021-09-20 19:30:52 +02:00 |
|
TheMode
|
17807f35da
|
Add experimental PlayerConnection#sendFramedPacket
Signed-off-by: TheMode <themode@outlook.fr>
|
2021-09-20 18:59:15 +02:00 |
|
TheMode
|
872a49d371
|
Use a bitset for light mask (thanks @Kebab11noel)
Signed-off-by: TheMode <themode@outlook.fr>
|
2021-09-19 10:09:08 +02:00 |
|
TheMode
|
dda90a6dfe
|
Improve chunk block getter
Signed-off-by: TheMode <themode@outlook.fr>
|
2021-09-18 15:59:20 +02:00 |
|
TheMode
|
380f5a5a67
|
Remove faulty fast exit
Signed-off-by: TheMode <themode@outlook.fr>
|
2021-09-16 19:50:57 +02:00 |
|
TheMode
|
4b5ec566bd
|
Allow FramedPackets to be sent safely
Signed-off-by: TheMode <themode@outlook.fr>
|
2021-09-16 19:37:30 +02:00 |
|