-
-
Notifications
You must be signed in to change notification settings - Fork 187
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[1.21.4] Fix IClientItemExtensions#renderHelmetOverlay never being called #1837
base: 1.21.x
Are you sure you want to change the base?
Conversation
|
@IThundxr, this PR introduces breaking changes.
|
So, this method needs a rename and some smarter handling imo. Basically, what Technically there are a few other asssumptions being made, such as the player must be in first person for the effect to be applied, but we'll assume it's only going to be rendered for first-person cameras that are not scoping. So, for this case, it would make more sense to call the method something like |
Those would be some good changes, i'll get them implemented and backported to 1.21.1 |
@ChampionAsh5357 I've went ahead and made some changes, let me know if you want any other changes |
+ this.renderTextureOverlay(p_316735_, equippable.cameraOverlay().get().withPath(p_380782_ -> "textures/" + p_380782_ + ".png"), 1.0F); | ||
+ } | ||
+ | ||
+ if (equipmentslot == EquipmentSlot.HEAD) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why does it matter whether it's on the head or not? The point is to allow it for any equipment slot if it matches where its supposed to be equipped to.
+ this.renderTextureOverlay(p_316735_, equippable.cameraOverlay().get().withPath(p_380782_ -> "textures/" + p_380782_ + ".png"), 1.0F); | ||
+ } | ||
+ | ||
+ if (equipmentslot == EquipmentSlot.HEAD) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why does it matter whether it's on the head or not? The point is to allow it for any equipment slot if it matches where its supposed to be equipped to.
No description provided.