Commit Graph

52 Commits

Author SHA1 Message Date
TheMode 0b0dc83ffe
Make separate module for testing framework (#1428) 2022-10-10 20:44:50 +02:00
Arektor 17ef1c2f57
Reduce velocity update rate (#1426) 2022-10-07 17:19:29 +02:00
TheMode 1dd2cc72ee
1.19.2 (#774) 2022-09-05 13:54:58 +02:00
Obyvante c694c4074e
Fixed metadata issue. (#1378) 2022-08-30 21:37:25 +02:00
iam 4a79a3af26
Refactor physics to simplify code (#1315) 2022-08-08 00:25:08 +02:00
Konstantin Shandurenko 4feac211c7
Item pickup fix (#1216) 2022-07-08 17:37:24 +02:00
Johnnywoof bab2c22a51
Use predicate for entity targeting (#1099)
* Use predicate for entity targeting

* Change range variable in deprecated constructor from double to float

* Use distance squared
2022-06-15 03:07:42 +10:00
Noel Németh bcab1b199b
Limit chunk update packets (#1128) 2022-06-04 22:04:57 +02:00
TheMode ff712575ad Fix velocity packets being sent for flying players
Signed-off-by: TheMode <themode@outlook.fr>
2022-06-04 20:38:31 +02:00
TogAr2 3cd73310cd
Account for flying in velocity calculation (#1111) 2022-05-22 16:46:54 +02:00
MrGazdag 5f9d44433d
Fix Entity#lookAt(Pos) not correctly looking at the position (#1058) 2022-05-12 23:35:46 +02:00
Kiip 35ae8bc07a
Only predict projectile higher if there is gravity (#1016) 2022-05-06 20:55:31 +02:00
TogAr2 23d7df7cbb
Entity pose fixes (#487) 2022-05-03 22:29:38 +02:00
Cody ef53559349
Fix #1009: Make canPlaceOn and canDestroy use Material instead of Block (#1010) 2022-05-01 10:44:33 +02:00
Weiiswurst afddb6f549
hasVelocity is now false if the entity just has gravity (#975) 2022-04-28 16:06:53 +02:00
TheMode 4b7f8213aa Entity metadata cleanup
Signed-off-by: TheMode <themode@outlook.fr>
2022-04-24 05:00:28 +02:00
Bloepiloepi d87a8f72c7
Fix Entity#takeKnockback and gravity (#943) 2022-04-23 21:37:27 +02:00
Weiiswurst c32153d221
Fix #942 (#962) 2022-04-22 19:03:28 +02:00
Lorenzo Lapucci 97abccce0c
Use eye height difference when setting direction using Entity#lookAt(Entity) (#900) 2022-04-10 14:13:13 +02:00
TheMode 5109acac42 WIP singleTickMovementUpdate
Signed-off-by: TheMode <themode@outlook.fr>
2022-04-05 03:08:34 +02:00
Konstantin Shandurenko 8df0d37107
Entity's line of sight methods improvements (#842) 2022-03-31 20:28:02 +02:00
themode 058e645c33 Store all missing entity meta in test 2022-03-16 23:08:53 +01:00
themode acee29c20a Fix player position being wrong inside tests 2022-03-14 19:01:48 +01:00
iam 6891a530f5
Block Collision Physics (#730) 2022-03-09 19:08:42 +01:00
themode cccbd98a3a Do not prevent entity gc if a local listener is added 2022-03-05 17:38:27 +01:00
themode bd533fc2f2 Add test to ensure entities are GCed 2022-03-05 17:28:48 +01:00
themode 7c874bb588 GameMode cleanup 2022-03-04 07:07:53 +01:00
themode fff0e3d97a Allow viewing predicates to be null to properly support `hasPredictableViewers` 2022-03-03 16:32:52 +01:00
themode 122d3ebaf3 Test `hasPredictableViewers` 2022-03-03 16:12:05 +01:00
themode 15f3c01b7c Assert entity position on spawn 2022-02-28 03:37:01 +01:00
themode dc90307e80 Fix vehicle viewing 2022-02-21 04:30:47 +01:00
themode 5802179206 More view engine rule tests 2022-02-19 03:08:09 +01:00
themode 7634096bce Add tests for manual viewer/viewable update 2022-02-19 02:12:24 +01:00
themode be100fa5b8 Fix invalid username/uuid in static PlayerSkin methods 2022-02-14 21:04:37 +01:00
themode 5685413fce Basic passengers viewing test 2022-02-14 11:10:03 +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 52852d339a Fix viewable packets in shared instances
Signed-off-by: TheMode <themode@outlook.fr>
2022-02-08 05:28:19 +01:00
TheMode b5cc2c4126 Verify entity removal from instance entity list
Signed-off-by: TheMode <themode@outlook.fr>
2022-01-31 12:54:48 +01:00
TheMode 6f099a4036 Ensure that DestroyEntitiesPacket is received on entity removal
Signed-off-by: TheMode <themode@outlook.fr>
2022-01-31 12:52:20 +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
TheMode 624ccbdee8 Fix build
Signed-off-by: TheMode <themode@outlook.fr>
2022-01-29 15:01:15 +01:00
Moulberry 6a83fd6ac8
Fix permission level resetting & make entity in EntityMeta nullable (#595) 2022-01-29 14:56:45 +01:00
TheMode d45ce9dab4 Add Env#listen
Signed-off-by: TheMode <themode@outlook.fr>
2022-01-29 08:37:17 +01:00
themode bd23cd6568 Add interpretPacketQueue for testing purpose 2022-01-28 05:32:35 +01:00
themode dbcb21d1aa Add basic api for event integration, + basic held tests 2022-01-27 13:08:42 +01:00
themode 1cedb8b49a Fix chunk viewers using entity view distance 2022-01-26 18:19:50 +01:00
TheMode a0549fdcad Basic tests for passengers
Signed-off-by: TheMode <themode@outlook.fr>
2022-01-24 07:42:30 +01:00
TheMode 57976a1595 Shortcut to assert a single tracked packet
Signed-off-by: TheMode <themode@outlook.fr>
2022-01-22 03:54:24 +01:00
TheMode 9947afe18b Ensure that all meta are registered
Signed-off-by: TheMode <themode@outlook.fr>
2022-01-20 21:04:14 +01:00
TheMode 7f9f33d462 Fix test
Signed-off-by: TheMode <themode@outlook.fr>
2022-01-20 04:57:41 +01:00