Commit Graph

4410 Commits

Author SHA1 Message Date
Alexander Mandera
740ffc8846
Fix bad conversion of block index using negative Y (#861) 2022-04-04 23:19:48 +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
TheMode
446e4a64b7 Catch exceptions during skin request
Signed-off-by: TheMode <themode@outlook.fr>
2022-04-01 22:53:46 +02:00
themode
3674fcc97d Fix nearbyEntities 2022-04-01 20:41:32 +02:00
TheMode
43734a9c58 Slight nearbyEntities improvement
Signed-off-by: TheMode <themode@outlook.fr>
2022-04-01 16:04:23 +02:00
TheMode
4e6c92e2c5
Unique stacking rule (#844) 2022-04-01 01:00:18 +02:00
Konstantin Shandurenko
8df0d37107
Entity's line of sight methods improvements (#842) 2022-03-31 20:28:02 +02:00
Konstantin Shandurenko
eebdb4a7a3
Reducing allocations count when working with bounding boxes (#843) 2022-03-31 19:48:43 +02:00
Konstantin Shandurenko
4c8b4c1abc
Fixed players visibility and relevancy within tablist (#840) 2022-03-31 18:57:56 +02:00
themode
bc0cb57c61 Cache optimization 2022-03-30 16:50:08 +02:00
themode
c81b0c0125 Palette misc 2022-03-29 16:50:16 +02:00
Konstantin Shandurenko
244f8785ff
Another fix for EntityProjectile (#826) 2022-03-29 00:00:43 +02:00
TheMode
29a06487ce Better flow control
Signed-off-by: TheMode <themode@outlook.fr>
2022-03-28 23:53:53 +02:00
Konstantin Shandurenko
b3ee3e2345
EntityProjectile fixes and optimizations (#807) 2022-03-28 22:06:25 +02:00
themode
cf1373396b Counted loop 2022-03-28 15:59:36 +02:00
TheMode
1c9b6f3529 Do not call Chunk#removeViewer
Signed-off-by: TheMode <themode@outlook.fr>
2022-03-27 15:31:34 +02:00
iam
fb5d6b88e3
Reduce allocations from physics check (#813) 2022-03-27 00:27:47 +01:00
MrGazdag
5469fef417
send teams on join (#803) 2022-03-26 16:16:35 +01:00
EpicPlayerA10
40024da5c9
Fix compression packet order (#811) 2022-03-26 15:40:14 +01:00
TheMode
835b8ca89d Add TagReadPathBenchmark
Signed-off-by: TheMode <themode@outlook.fr>
2022-03-26 15:26:46 +01:00
TheMode
ac4d78acf1 Synchronize cache access
Signed-off-by: TheMode <themode@outlook.fr>
2022-03-26 13:05:21 +01:00
TheMode
85559abb28 TagHandlerImpl cleanup
Signed-off-by: TheMode <themode@outlook.fr>
2022-03-26 13:03:28 +01:00
TheMode
131116013d Event nodes need total order
Signed-off-by: TheMode <themode@outlook.fr>
2022-03-26 12:02:36 +01:00
themode
a689691873 Unnecessary fences 2022-03-26 11:44:40 +01:00
TheMode
daf83a25d1 Add some event node query tests
Signed-off-by: TheMode <themode@outlook.fr>
2022-03-26 10:13:43 +01:00
themode
8dcb3191f6 Improve tag value sharing 2022-03-25 17:48:18 +01:00
themode
edabb19891 Explicit fences 2022-03-25 10:12:04 +01:00
themode
0fc9cab6ab Unnecessary array lookup 2022-03-25 08:23:33 +01:00
themode
9ee74845e1 Avoid list copy when unnecessary 2022-03-25 08:18:30 +01:00
themode
2d6368f6bd copy-on-write index map 2022-03-24 12:51:24 +01:00
themode
043c139b91 Improve read performance with different tag 2022-03-24 11:23:16 +01:00
TheMode
2301ad9976
Tag list (#801) 2022-03-24 09:03:30 +01:00
TheMode
b5367ee96a
Tag path API (#800) 2022-03-24 05:42:01 +01:00
themode
54b65f49a6 Prevent unlikely race condition 2022-03-23 10:52:39 +01:00
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