stackotter / delta-client

An open source Minecraft Java Edition client built for speed.
https://deltaclient.app
GNU General Public License v3.0
313 stars 33 forks source link

Fix flying speed to match vanilla #178

Closed stackotter closed 1 month ago

stackotter commented 11 months ago

Currently the flying speed (in creative mode) feels a lot slower than in vanilla. From a quick look at the decompiled vanilla source code, it looks like horizontal flying speed should be PlayerAttributes.flyingSpeed (multiplied by 2 if sprinting). If you update calculatePlayerSpeed in PlayerAccelerationSystem accordingly, hopefully it'll work 🤞. If you test the flying speed against vanilla and it still doesn't match, you may need to look at the decompiled vanilla source code to figure out why it's not matching. I'm not sure why the vertical flying velocity is so much slower than Delta Client, that part will require a bit more investigation.

I already have most code snippets relevant to player physics pulled out into separate files so that I can refer back to them easily. Contact me on Discord if you want to tackle this issue and I'd be happy to help get you started.