Commit Graph

799 Commits

Author SHA1 Message Date
TheMode fc90fe8852 Remove some `Collections` usage
Signed-off-by: TheMode <themode@outlook.fr>
2022-09-06 15:08:36 +02:00
TheMode 1dd2cc72ee
1.19.2 (#774) 2022-09-05 13:54:58 +02:00
Marfien eef95ae5d1
Add ComponentHolderServerPacket to some packets (#1275) 2022-09-02 22:23:42 +02:00
Steank 0989c220f6
Fix NullPointerException, deadlock when stopping the server (#1220) 2022-07-08 21:31:54 +02:00
TheMode 1bf750a603 Make PlayerPacketOutEvent cancellable
Signed-off-by: TheMode <themode@outlook.fr>
2022-07-07 18:12:54 +02:00
Konstantin Shandurenko 90fa4e46ea
Catching everything in Worker's selector (#1207) 2022-07-06 01:27:24 +02:00
Noel Németh 3e7719b6d1 Add missing parsers 2022-07-05 20:01:51 +02:00
Noel Németh 81c978ee9b Fix parser namespaces 2022-07-05 19:24:41 +02:00
TheMode 20dcf91f4a Do not write packet after disconnection
Signed-off-by: TheMode <themode@outlook.fr>
2022-06-09 16:40:51 +02:00
Noel Németh b112248ae8
Fix by checking if the connection uses inet socket (#1152) 2022-06-05 14:53:28 +02:00
TheMode 2289cf32e1 Fix unnecessary allocation on ping
Signed-off-by: TheMode <themode@outlook.fr>
2022-06-04 22:43:02 +02:00
TheMode ace42b6f46 Make ObjectArray interface
Signed-off-by: TheMode <themode@outlook.fr>
2022-05-18 08:54:55 +02:00
TheMode 8d7175af73
Replace thread locals to pool (#1079) 2022-05-16 07:34:47 +02:00
TheMode 7d930ee28d Replace PlayerConnection#sendPacket when possible
Signed-off-by: TheMode <themode@outlook.fr>
2022-05-10 10:07:55 +02:00
TheMode 4b7f8213aa Entity metadata cleanup
Signed-off-by: TheMode <themode@outlook.fr>
2022-04-24 05:00:28 +02:00
TheMode 198618ba98 Add rate limiter for incoming packets
Signed-off-by: TheMode <themode@outlook.fr>
2022-04-15 12:25:58 +02:00
TheMode 467decbb20 Remove explicit fences
Signed-off-by: TheMode <themode@outlook.fr>
2022-04-03 04:09:11 +02:00
TheMode 7a371fe616 Do not fallback to waiting list
Signed-off-by: TheMode <themode@outlook.fr>
2022-04-02 23:35:11 +02:00
TheMode ff8dd0cdaa Misc networking improvements
Signed-off-by: TheMode <themode@outlook.fr>
2022-04-02 22:05:29 +02:00
EpicPlayerA10 40024da5c9
Fix compression packet order (#811) 2022-03-26 15:40:14 +01:00
themode a689691873 Unnecessary fences 2022-03-26 11:44:40 +01:00
themode edabb19891 Explicit fences 2022-03-25 10:12:04 +01:00
themode 71b6e8df90 Misc network improvement 2022-03-20 03:22:38 +01:00
themode 54fd65eded Remove writeAndFlush 2022-03-20 02:35:45 +01:00
themode b304e1328a Fix packet parsing for disconnected clients 2022-03-20 02:29:00 +01:00
themode acee29c20a Fix player position being wrong inside tests 2022-03-14 19:01:48 +01:00
themode 7c874bb588 GameMode cleanup 2022-03-04 07:07:53 +01:00
Moulberry baa603ba41
Fix naming error in SpawnLivingEntityPacket 2022-03-03 23:13:49 +08:00
themode 96fee8541d Move ObjectArray 2022-03-02 11:44:11 +01:00
TheMode 98e6b23fdd
1.18.2 update (#714) 2022-03-01 00:40:19 +01:00
themode d57b03f54d Better caching for CachedPacket#packet 2022-02-25 00:01:16 +01:00
themode 62a7346f40 cacheBuffer does not need to be volatile 2022-02-20 13:15:46 +01:00
themode a15156aeb4 Add EncryptionContext 2022-02-20 12:58:09 +01:00
TheMode 9b04e89552
Add PlayerPacketOutEvent (#689) 2022-02-17 13:51:55 +01:00
themode 49e727d177 Move removal of unix socket file 2022-02-13 16:05:19 +01:00
themode 1fe93ce653 Fix socket close 2022-02-13 14:34:30 +01:00
TheMode de71900cb9 Add `readByteArray` shortcut
Signed-off-by: TheMode <themode@outlook.fr>
2022-02-11 04:32:49 +01:00
TheMode 1ad013e02e Remove deprecated data/storage APIs
Signed-off-by: TheMode <themode@outlook.fr>
2022-02-09 23:07:18 +01:00
TheMode d622eab048 Oopsie
Signed-off-by: TheMode <themode@outlook.fr>
2022-02-02 21:30:03 +01:00
emortal f1ca048eb6
Fix player settings (#620) 2022-01-29 22:07:50 +01:00
TheMode fb81578028 Move string length check in ClientSettingsPacket
Signed-off-by: TheMode <themode@outlook.fr>
2022-01-29 21:04:01 +01:00
TheMode 87d5a33c76
Fix corruption when receiving multiple compressed packets (#611)
Signed-off-by: TheMode <themode@outlook.fr>
2022-01-29 10:18:23 +01:00
themode 85677360eb Move MOJANG_AUTH_URL 2022-01-26 06:58:41 +01:00
themode 0b4dd3b8aa Heavily reduce the number of direct buffers required for each worker 2022-01-26 06:37:46 +01:00
TheMode d0b874ed7c Move local buffers
Signed-off-by: TheMode <themode@outlook.fr>
2022-01-26 05:01:43 +01:00
Andre Roldan 2d305cb0f0
Add ResourcePack#optional overload to specify prompt (#600) 2022-01-25 01:42:32 +01:00
TheMode e0e5fe049d Remove deprecated ResponseDataConsumer, add support for unix domain socket
Signed-off-by: TheMode <themode@outlook.fr>
2022-01-25 01:38:18 +01:00
TheMode be1495a385 Add extractClientNbt utils
Signed-off-by: TheMode <themode@outlook.fr>
2022-01-22 05:46:26 +01:00
themode 95a4d6a1ab Scheduler should not be responsible for polling timeout 2022-01-19 23:33:21 +01:00
TheMode 0366027c5d Misc cleanup
Signed-off-by: TheMode <themode@outlook.fr>
2022-01-12 22:15:50 +01:00