Immersive Vehicles (Formerly Transport Simulator)

Immersive Vehicles (Formerly Transport Simulator)

4M Downloads

[BUG] Weapon cooldown doesn't behave correctly (I think)

boot2big opened this issue ยท 3 comments

commented

image
I... don't think that's 30 ticks?
image
image

2022-12-09.23-08-17.mp4
commented

Yeah, I have bad code in there somewhere. MC is funky with how it handles attack speed, and I probably got it wrong. Will fix when I get time, but that might not be for a while as I don't feel like digging into MC code more now that I've spent time in the 1.16.5 mess. So expect this bug to linger for a while.

commented

So, come to find out MC doesn't allow you to change the speed between attacks. When it changes attack speed, it's the delay between full-strength attacks, not the delay between total attacks. That being said, my math is indeed wrong on the latter, so will fix.

commented

Fixed in 22.5.0.