Commit Graph

3207 Commits

Author SHA1 Message Date
Babbaj 535fd17a42
simplify null check 2023-06-22 08:30:25 -04:00
Brady 47dc0f9b94
Add missing exception null check to async completed callback 2023-06-21 21:30:04 -05:00
Brady 4776fa1876
Don't update `playerNear` on an empty path 2023-06-21 21:19:12 -05:00
Brady 0aff31b768
Perfect elytra simulation 2023-06-21 18:59:44 -05:00
Brady 877fd25608
Distinguish unexpected exceptions in path calc 2023-06-21 00:52:43 -05:00
Brady cfd9a69052
Revert how PathManager tick works 2023-06-21 00:21:37 -05:00
Brady d42bfcfa53
Fix NPE 2023-06-20 23:15:45 -05:00
Brady defa6399e2
Tweak hitbox constraints 2023-06-20 23:01:07 -05:00
Brady 699e8bdea6
troll concurrency fix for rn 2023-06-20 22:36:27 -05:00
Brady 2eb912835a
Restore interp values 2023-06-20 21:28:30 -05:00
Brady bd7a57f7aa
We do a little trolling 2023-06-20 21:27:54 -05:00
Brady e76f79214e
Replace `pathAt` with `NetherPath` 2023-06-20 21:07:21 -05:00
Brady 141a48a15e
Some refactoring, more precise `goingTo` 2023-06-20 20:30:10 -05:00
Brady fa158c6e67
Remove unnecessary conversions to Vec3d 2023-06-20 20:18:56 -05:00
Brady 7a12ef530c
Cancel solver on behavior cancel 2023-06-20 20:11:34 -05:00
Brady 1d092a7165
Compute angles on another thread between ticks 2023-06-20 20:09:53 -05:00
Brady 57a17e907e
Add missing `CallbackInfo` 2023-06-20 17:30:38 -05:00
Brady 2a82f6048a
Implement POST TickEvent with new `onPostTick` callback 2023-06-20 17:18:30 -05:00
Brady 4076263afa
Un-scuff PRE TickEvent injector 2023-06-20 17:00:42 -05:00
Brady e3c8283158
Move solver into separate method 2023-06-20 15:15:02 -05:00
Brady 0aad3470d9
Differ between no pitch solution and no solution at all 2023-06-20 15:05:59 -05:00
Brady Hahn 553c85f0f6
Merge pull request #4011 from babbaj/elytra
fix 0.5 offset in elytra path rendering
2023-06-20 14:49:00 -05:00
Babbaj c057081f07
fix 0.5 offset in elytra path rendering 2023-06-20 15:48:12 -04:00
Brady 7d22a71507
Only count unchanged ticks when using elytra 2023-06-20 13:50:26 -05:00
Brady 0ecabdd047
Update `nether-pathfinder` to 0.18 2023-06-20 13:43:42 -05:00
Brady 6c6b44ee65
Recalculate path if stuck 2023-06-20 13:43:14 -05:00
Brady 14ff90ccf1
remaining ticks mojang incident 2023-06-19 23:12:46 -05:00
Brady 5d7655fbdf
Fix silly 0x integer wraparound trolle 2023-06-19 22:52:27 -05:00
Brady ee0a6c2523
Use new single trace `isVisible` api 2023-06-19 21:45:52 -05:00
Brady 753b1cf1c3
Interpolate path positions
- Update `nether-pathfinder` to 0.17
- Utilize new batched visibility raytracing to efficiently trace bounding box paths
2023-06-19 21:38:08 -05:00
0x22 cd1c07deef
added elytraFireworkSetbackUseDelay setting. 2023-06-19 22:22:57 -04:00
Brady Hahn 9d05043fa0
Merge pull request #4005 from babbaj/elytra
use legacy raytrace with ignore liquid to get out of lava
2023-06-19 18:04:14 -05:00
Babbaj 5f709eef9c
use world raytrace 2023-06-19 18:26:00 -04:00
Babbaj e57a84ded4
use legacy raytrace with ignore liquid to get out of lava 2023-06-19 17:58:06 -04:00
Brady 959b4cddbd
Remove unneeded `while (true)` 2023-06-19 15:29:30 -05:00
Brady 82156250df
Update `nether-pathfinder` to 0.16 2023-06-19 15:20:04 -05:00
Brady 90f401a067
Remove legacy raytracing methods 2023-06-19 15:19:32 -05:00
Brady c6a6624045
Reorder fields 2023-06-19 15:16:11 -05:00
Brady 7d17ace15d
Reset recalculating flag on `clear` 2023-06-19 15:15:29 -05:00
Brady 8d3b0c8f07
Always enforce `sinceFirework` 2023-06-19 14:10:41 -05:00
0x22 6741dff12b
replaced (PI / 180) constants, RotationUtils calcVec3dFromRotation->calcLookDirectionFromRotation and named local variables. 2023-06-19 14:17:54 -04:00
Brady 9e10faa4c5
Elytra inventory modifications
- Use `throwaway` to switch items
- Remove inventory settings
- Prioritizes boost fireworks, but works without
- Avoids explosion fireworks
2023-06-19 12:32:25 -05:00
Brady Hahn 579e6d6e4c
Merge pull request #4003 from rycbar0/elytra
prevent <player> went off with a bang
2023-06-19 12:12:15 -05:00
rycbar0 a32ac59ec1 prevent <player> went off with a bang 2023-06-19 12:44:32 +02:00
Leijurv 2b259d6dee
cuter debug 2023-06-18 23:09:43 -07:00
Brady 67efb7a5b6
Add `experimentalRaytrace` setting for native raytrace
Update `nether-pathfinder` to 0.15
2023-06-19 00:34:22 -05:00
Brady 1da7ab2c22
Fix raytracer rendering 2023-06-18 23:58:20 -05:00
Brady 1257a0128c
Remove unnecessary `Baritone` casts 2023-06-18 21:46:56 -05:00
Brady 0886f176b3
Make elytra API changes 2023-06-18 21:46:03 -05:00
Brady 7a8f8e8d47
fix noob error from resolving merge conflicts 2023-06-18 21:42:04 -05:00