Commit Graph

832 Commits

Author SHA1 Message Date
themode acee29c20a Fix player position being wrong inside tests 2022-03-14 19:01:48 +01:00
themode df64ce9653 Remove dependency from instance/entity for collisions 2022-03-13 23:28:31 +01:00
themode c890a1ae9a Reduce field lookup for block touch 2022-03-13 17:55:00 +01:00
themode 27b046b52c Simplify toSectionRelativeCoordinate 2022-03-11 17:55:56 +01:00
themode 4ab2f43eed Simplify ObjectArray 2022-03-07 20:45:51 +01:00
themode 3764e83a4f Dead code 2022-03-07 13:55:13 +01:00
themode 94406d5380 More reliable builds 2022-03-07 10:15:24 +01:00
TheMode f7d44c4774
Snapshot API (#722) 2022-03-03 07:44:57 +01:00
themode 3e184abc0f Unnecessary array util 2022-03-02 14:55:03 +01:00
themode 96fee8541d Move ObjectArray 2022-03-02 11:44:11 +01:00
TheMode 50c0f01fb2
View engine improvements (#715) 2022-02-26 00:10:26 +01:00
themode 119afa6311 Simplify EntityTracker, reduce allocations 2022-02-25 02:30:01 +01:00
themode dab6ec6000 Dead code 2022-02-21 22:04:05 +01:00
themode 338ffb80db Ensure that entities are not registered twice 2022-02-21 05:14:19 +01:00
themode dc90307e80 Fix vehicle viewing 2022-02-21 04:30:47 +01:00
themode e7253488c6 Dead code 2022-02-19 16:54:13 +01:00
themode 688ab31d79 Remove Math.max call 2022-02-18 16:52:33 +01:00
themode c3c139735a Improve ChunkSet 2022-02-18 11:13:45 +01:00
TheMode 9b04e89552
Add PlayerPacketOutEvent (#689) 2022-02-17 13:51:55 +01:00
themode c4e455b376 Avoid list conversion 2022-02-14 08:31:56 +01:00
themode 028b187eda Remove unnecessary synchronization in ChunkSet 2022-02-14 07:46:19 +01:00
themode 01e5be9454 Remove distinct call 2022-02-13 20:35:02 +01:00
themode 056f819cc8 Slightly optimize viewable stream 2022-02-13 20:02:06 +01:00
themode 0ca5e2ade6 Update VIEWABLE_STORAGE_MAP as `compute` is no longer required 2022-02-13 19:15:24 +01:00
themode fef0bbe01b Do not override stream methods 2022-02-13 17:36:06 +01:00
themode 0f421c22db Specialize ViewEngine set for entities & chunks. Also fix manual viewers for entities 2022-02-13 17:34:09 +01:00
themode 84d154b8db Add ChunkUtils#getChunkCount 2022-02-13 10:27:24 +01:00
themode 4459bbeebd Cleanup view tracking 2022-02-13 07:51:47 +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 e505c965e2 Avoid floor whenever possible
Signed-off-by: TheMode <themode@outlook.fr>
2022-02-08 09:52:50 +01:00
TheMode f633e6e276 Simplify `parseProperties`
Signed-off-by: TheMode <themode@outlook.fr>
2022-02-08 09:42:18 +01:00
TheMode 920bf62699 Style
Signed-off-by: TheMode <themode@outlook.fr>
2022-02-08 05:31:47 +01:00
TheMode 52852d339a Fix viewable packets in shared instances
Signed-off-by: TheMode <themode@outlook.fr>
2022-02-08 05:28:19 +01:00
themode 2e02dfd4d8 Fix synchronization issue with viewable packets 2022-02-05 08:21:19 +01:00
TheMode 0743759eed
Do not cache registry (#651) 2022-02-04 22:28:05 +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 735184b909 Add tests for reading complete un/compressed stream 2022-01-27 14:58:30 +01:00
themode a111271113 Fix tests 2022-01-26 18:37:21 +01:00
Moulberry cd591dd388
Fix cachedBuffer being overriden (#603) 2022-01-26 17:28: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
TheMode 32d692a56a Avoid more allocation
Signed-off-by: TheMode <themode@outlook.fr>
2022-01-25 14:14:01 +01:00
TheMode b5bcd8fd4a Avoid string internal during properties parsing
Signed-off-by: TheMode <themode@outlook.fr>
2022-01-25 13:33:14 +01:00
TheMode 30cf6e8e4f Improve block properties performance
Signed-off-by: TheMode <themode@outlook.fr>
2022-01-25 07:43:52 +01:00
TheMode be1495a385 Add extractClientNbt utils
Signed-off-by: TheMode <themode@outlook.fr>
2022-01-22 05:46:26 +01:00
TheMode a9dc5bbf7b Add back namespace caching
Signed-off-by: TheMode <themode@outlook.fr>
2022-01-18 00:47:28 +01:00
themode 0163dd6f42 Reduce block properties parsing allocation 2022-01-15 20:12:33 +01:00
TheMode 2ef1902664 Remove MinestomThreadPool, use the common pool for generation
Signed-off-by: TheMode <themode@outlook.fr>
2022-01-12 22:37:35 +01:00
TheMode 0366027c5d Misc cleanup
Signed-off-by: TheMode <themode@outlook.fr>
2022-01-12 22:15:50 +01:00