Conversation
Changes the getMaxUseTime Item Mixin to exclude shields and spears. Fixes occasional damage applying through shields and spears acting weird.
|
Thank you for this fix, I'll test it later today and leave my review |
|
|
JXSnack
left a comment
There was a problem hiding this comment.
LGTM
Tested in multiplayer 1.21.11 - works as intended without any visible side effects
|
add check of |
|
I have no idea what you're talking about. Maybe give some additional context to what you mean instead of giving destructive feedback? Please state:
This PR fixes both the shield and spear issue. I've tested it and I can show you the individual pieces of code that do this. |
|
I believe that Anyways, be polite next time and explain what you mean |

Changes the getMaxUseTime Item Mixin to exclude shields and spears.
This should fix the occasional damage applying through shields and spears acting weird.
Most of my testing was on 1.21.9-1.21.11, but this change should work on older versions that have the shield bug, and not affect those that don't (I did a quick code check for 1.19.2+).
Alternatively, I believe adding
|| original == 72000to the if statement would also work.Resolves #62 and resolves #42