Commit Graph

4374 Commits

Author SHA1 Message Date
themode
dc9580b990 Add IndexMap 2022-03-23 08:49:40 +01:00
themode
d20cf85982 Unnecessary class parameter 2022-03-23 07:04:05 +01:00
themode
355beac466 Unnecessary methods 2022-03-23 06:51:36 +01:00
themode
ee5ca9050c Improve tag index retrieval 2022-03-23 06:22:48 +01:00
iam
3fbdf4f22a
Fix Entity Touch Block Check (#795) 2022-03-21 00:04:54 +01:00
Bloepiloepi
81b4c3158d
Guardian target fix (#791) 2022-03-20 22:07:30 +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
f2fec73202
Tag internal rework (#782) 2022-03-20 01:47:57 +01:00
Moulberry
84871ea93e
Fix typo in EntityMeta 2022-03-18 23:10:10 +08:00
themode
055cc409ed Ensure proper chunk synchronization 2022-03-17 00:14:12 +01:00
themode
8cf598d290 Use the main scheduler 2022-03-16 06:58:01 +01:00
themode
1e58318a3a Fix potential deadlock on instance join 2022-03-16 06:54:39 +01:00
GreatWyrm
2f5661b313
Have projectiles spawn at the creature's eye position (#598) 2022-03-16 00:59:15 +01:00
themode
db2d00819c Avoid stream for placement collision 2022-03-14 22:30:08 +01:00
themode
baca58daa6 BlockCollision must stay internal 2022-03-14 19:13:30 +01:00
iam
bcfb4c6ea4
Fix block placement below players (#767) 2022-03-14 19:07:29 +01:00
themode
acee29c20a Fix player position being wrong inside tests 2022-03-14 19:01:48 +01:00
iam
9215e33e80
Remove faces and cartesian product (#762) 2022-03-14 00:32:18 +01:00
themode
df64ce9653 Remove dependency from instance/entity for collisions 2022-03-13 23:28:31 +01:00
themode
60f583b179 Cache shapes size 2022-03-13 21:27:56 +01:00
themode
11708a1c1a Remove dedicated Faces class 2022-03-13 21:20:11 +01:00
iam
37a18eced5
Physics Test + revert (#742) 2022-03-13 18:53:20 +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
024ba736ce Improve tasks performance 2022-03-10 16:57:36 +01:00
themode
b906bd89ce Oops 2022-03-10 16:07:56 +01:00
themode
c1d65071d3 Change getTag annotation 2022-03-10 15:54:12 +01:00
themode
a29a51ee0a Greatly reduce the number of checks 2022-03-09 20:14:42 +01:00
themode
e7545e470f Cache compiled pattern 2022-03-09 19:47:42 +01:00
themode
d3432011d9 Avoid boxing and streams 2022-03-09 19:45:05 +01:00
iam
6891a530f5
Block Collision Physics (#730) 2022-03-09 19:08:42 +01:00
themode
9bca6ee0e3 Fix override registry 2022-03-09 17:51:03 +01:00
themode
d1b654e843 Fix rare viewer NPE 2022-03-09 17:28:37 +01:00
themode
03cf585121 Unnecessary null check 2022-03-07 22:18:03 +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
29f55ee720 Remove PROPERTIES_VALUES 2022-03-07 13:49:56 +01:00
themode
94406d5380 More reliable builds 2022-03-07 10:15:24 +01:00
EpicPlayerA10
2e73f00331
Fix axolotl meta (#738) 2022-03-06 15:16:55 +01:00
themode
2f6e3b62b0 Registration cleanup 2022-03-06 09:06:59 +01:00
TheMode
0f8f1f9906
Unique node mapping (#737) 2022-03-06 07:29:51 +01:00
themode
cccbd98a3a Do not prevent entity gc if a local listener is added 2022-03-05 17:38:27 +01:00
TheMode
1bea4848ac
Local node (#734) 2022-03-05 17:01:10 +01:00
TheMode
cc69fcf05a
Revert "Local node support (#688)" (#733)
This reverts commit 0cb2600929.
2022-03-05 12:06:59 +01:00
TheMode
0cb2600929
Local node support (#688) 2022-03-05 11:11:39 +01:00
themode
7c874bb588 GameMode cleanup 2022-03-04 07:07:53 +01:00
themode
b43c404ed2 Never-mind 2022-03-04 05:33:46 +01:00
themode
ad3e723437 CAS to reset acquiring time 2022-03-04 05:31:50 +01:00
themode
c5d1d8bc36 Synchronize the full reference method 2022-03-03 18:20:32 +01:00
EpicPlayerA10
f1465804c6
Fix advancement exception on player disconnect (#724) 2022-03-03 17:11:42 +01:00
themode
fff0e3d97a Allow viewing predicates to be null to properly support hasPredictableViewers 2022-03-03 16:32:52 +01:00
Moulberry
baa603ba41
Fix naming error in SpawnLivingEntityPacket 2022-03-03 23:13:49 +08:00
themode
122d3ebaf3 Test hasPredictableViewers 2022-03-03 16:12:05 +01:00
themode
708307dbde Add additional barriers 2022-03-03 12:13:25 +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
5930626dad Fast exit when the entity has no viewer 2022-03-01 05:36:33 +01:00
themode
45fe2f1ac9 Improve entity viewer iterator creation 2022-03-01 04:21:16 +01:00
themode
fa5fe8f208 Simplify 2022-03-01 03:18:49 +01:00
themode
69ab2c0045 Fix nearbyEntities not working with chunk borders 2022-03-01 03:15:13 +01:00
themode
9a7d5039a7 Change assert 2022-03-01 01:04:58 +01:00
TheMode
98e6b23fdd
1.18.2 update (#714) 2022-03-01 00:40:19 +01:00
themode
e23de98587 InstanceContainer misc improvements 2022-03-01 00:35:55 +01:00
themode
4512cef7d9 Use bytes whenever possible 2022-02-27 22:50:58 +01:00
themode
41862c576b No need to update the palette count on resize 2022-02-27 01:14:57 +01:00
themode
5579415513 FlexiblePalette cleanup 2022-02-26 22:37:53 +01:00
themode
ebb6dffb31 Entities should not retrieve viewers from shared instances 2022-02-26 00:38:27 +01:00
TheMode
50c0f01fb2
View engine improvements (#715) 2022-02-26 00:10:26 +01:00
themode
487fbcb5b9 Stricter resize rule 2022-02-25 22:58:55 +01:00
themode
8839503767 Remove some AdaptivePalette fields 2022-02-25 22:36:39 +01:00
themode
58b103afd6 Improve FilledPalette serialization 2022-02-25 03:00:53 +01:00
themode
2627c1702e Bring back palette compression 2022-02-25 03:00:24 +01:00
themode
119afa6311 Simplify EntityTracker, reduce allocations 2022-02-25 02:30:01 +01:00
themode
b6ba957a7b Temporarily disable palette compression 2022-02-25 02:19:29 +01:00
themode
d57b03f54d Better caching for CachedPacket#packet 2022-02-25 00:01:16 +01:00
themode
f09dacf795 Misc cleanup 2022-02-24 23:29:41 +01:00
themode
842373da7d Static import in entity tracker 2022-02-24 23:07:36 +01:00
themode
7428176206 Test for palette optimizations 2022-02-24 22:21:11 +01:00
themode
2c0b026e46 Fix BenchmarkManager on substrate VM 2022-02-23 04:46:15 +01:00
themode
d7af91b603 Reduce field lookup 2022-02-23 04:10:34 +01:00
themode
5b3cb709d6 Use ClassValue to store event handles 2022-02-23 00:02:11 +01:00
Aleksey Demchenkov
f9367ef4a6
Resetting player flying speed after changing gamemode (#710) 2022-02-22 21:02:26 +01:00
themode
dab6ec6000 Dead code 2022-02-21 22:04:05 +01:00
themode
b1353c69fe Remove viewEngine mention in updateNewViewer/updateOldViewer 2022-02-21 19:05:11 +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
6ef04ae618 Add assert for tick park 2022-02-20 17:44:22 +01:00
Mrln
4586fc8fd8
Make min distance to interact with entities 6, staying consistent to notchian server (#704) 2022-02-20 15:29:13 +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
e7253488c6 Dead code 2022-02-19 16:54:13 +01:00
themode
b54ab55efe Use interactAt instead of interact 2022-02-19 14:38:31 +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
be100fa5b8 Fix invalid username/uuid in static PlayerSkin methods 2022-02-14 21:04:37 +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
ab2fee2bac Synchronize updateAndAwait 2022-02-13 19:36:29 +01:00
themode
0ca5e2ade6 Update VIEWABLE_STORAGE_MAP as compute is no longer required 2022-02-13 19:15:24 +01:00
themode
2608071ee4 Use method reference to create tick threads 2022-02-13 18:11:15 +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
49e727d177 Move removal of unix socket file 2022-02-13 16:05:19 +01:00
themode
36c27cbe05 Fix rare case where the phaser gets terminated on ARM cpus 2022-02-13 15:52:01 +01:00
themode
1fe93ce653 Fix socket close 2022-02-13 14:34:30 +01:00
themode
2438393ce1 Remove GlobalHandles for better testability 2022-02-13 12:34:27 +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
d08635dbc3 Avoid unnecessary/unsafe field lookups 2022-02-13 07:28:50 +01:00
TheMode
2006098ee2 Fix falling block velocity prediction
Signed-off-by: TheMode <themode@outlook.fr>
2022-02-11 07:36:03 +01:00
TheMode
de71900cb9 Add readByteArray shortcut
Signed-off-by: TheMode <themode@outlook.fr>
2022-02-11 04:32:49 +01:00
TheMode
502db8ec5c Fix block entity packet not being sent on placement
Signed-off-by: TheMode <themode@outlook.fr>
2022-02-10 16:48:59 +01:00
TheMode
5b9784d85a Misc cleanup
Signed-off-by: TheMode <themode@outlook.fr>
2022-02-10 13:27:46 +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
09aea3c8d4 palette inlining
Signed-off-by: TheMode <themode@outlook.fr>
2022-02-08 08:41:50 +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
b26abc11b0 Fix shared instance unregistering
Signed-off-by: TheMode <themode@outlook.fr>
2022-02-07 23:39:57 +01:00
TheMode
0f352a8f92 Fix potion registry
Signed-off-by: TheMode <themode@outlook.fr>
2022-02-07 23:26:30 +01:00
themode
2e02dfd4d8 Fix synchronization issue with viewable packets 2022-02-05 08:21:19 +01:00
TheMode
0934c8ef16 counter thread provider should never update partitions
Signed-off-by: TheMode <themode@outlook.fr>
2022-02-05 06:17:04 +01:00
TheMode
95fd6e7c81 Change int array to byte in BlockImpl
Signed-off-by: TheMode <themode@outlook.fr>
2022-02-04 22:30:30 +01:00
TheMode
0743759eed
Do not cache registry (#651) 2022-02-04 22:28:05 +01:00
TheMode
6716b21a4a Bring back palette optimization
Signed-off-by: TheMode <themode@outlook.fr>
2022-02-03 16:09:43 +01:00
TheMode
fbd462a6ee Temporarily remove palette optimization
Signed-off-by: TheMode <themode@outlook.fr>
2022-02-03 05:34:32 +01:00
TheMode
d622eab048 Oopsie
Signed-off-by: TheMode <themode@outlook.fr>
2022-02-02 21:30:03 +01:00
TheMode
5b91e0c622 Dead code
Signed-off-by: TheMode <themode@outlook.fr>
2022-02-02 19:55:14 +01:00
TheMode
852712c4ed
Palette specialization (#638) 2022-02-02 19:24:08 +01:00
TheMode
81ab4214f2 Add Pos#withView(Pos)
Signed-off-by: TheMode <themode@outlook.fr>
2022-02-02 16:42:00 +01:00
TheMode
a2b1148343 Make EventNode#toString return a graph of the current node state
Signed-off-by: TheMode <themode@outlook.fr>
2022-02-02 15:41:11 +01:00
TheMode
5b699e0375 Fix removal scheduling involving server ticks
Signed-off-by: TheMode <themode@outlook.fr>
2022-01-30 08:23:34 +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
f9080fa4f8 Tab list changes must be broadcasted
Signed-off-by: TheMode <themode@outlook.fr>
2022-01-29 16:59:46 +01:00
Moulberry
6a83fd6ac8
Fix permission level resetting & make entity in EntityMeta nullable (#595) 2022-01-29 14:56:45 +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
bd23cd6568 Add interpretPacketQueue for testing purpose 2022-01-28 05:32:35 +01:00
themode
735184b909 Add tests for reading complete un/compressed stream 2022-01-27 14:58:30 +01:00
themode
6ecf486b9d Remove guava dependency 2022-01-27 05:15:51 +01:00
themode
a111271113 Fix tests 2022-01-26 18:37:21 +01:00
themode
1cedb8b49a Fix chunk viewers using entity view distance 2022-01-26 18:19:50 +01:00
themode
9157799e67 Remove unnecessary chunk viewer check 2022-01-26 17:49:14 +01:00