Commit Graph

774 Commits

Author SHA1 Message Date
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
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