Skip to content
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

Incompatibility with SBA entity outlines #19

Closed
Phoube opened this issue Apr 30, 2021 · 1 comment
Closed

Incompatibility with SBA entity outlines #19

Phoube opened this issue Apr 30, 2021 · 1 comment

Comments

@Phoube
Copy link

Phoube commented Apr 30, 2021

Hi all,

I'm hoping to fix an incompatibility between SBA's entity outlines and this mod. The problem occurs because SBA calls Minecraft.getMinecraft().getRenderManager().renderEntityStatic() for players inside Hypixel Skyblock Dungeons. This then eventually fires the RenderPlayerEvent.Pre event that Level head subscribes to here. The result is that the level head display (above player heads) is outlined along with the rest of the entity.

Looking at the level head code, I don't see a way to prevent rendering outlines around the level head display from SBA's end. But I think there might be a simple way to do it on Level head's end.

There are two potential fixes. The first is #18 , which changes the event subscription to one that only fires when nametags are rendered (nametag rendering is disabled when rendering entity outlines). The second is adding an extra check for RendererLivingEntity.renderOutlines. Unfortunately the second option likely involves access transformers or mixins, as the field is protected and there are no getters that I could find.

Thanks for your help!

Edit: I got some help from @DJtheRedstoner, who reviewed my PR #18 and gave me some patches to apply. According to DJ, the PR works in 1.8.9, but they were unable to test it in 1.12 because of "other issues."

@ghost
Copy link

ghost commented May 25, 2021

Fixed in 401ad1a

@ghost ghost closed this as completed May 25, 2021
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant