Cyberware

Cyberware

3M Downloads

HUD elements are invisible with Knob Control

UnscathedAnimal opened this issue ยท 2 comments

commented

I don't actually know which side is causing this conflict, so I'm mentioning the issue to both mod creators. After playing the Invasion modpack and acquiring the Cyberware Hudjack, I was unable to see my power levels. After quite a lot of removing and adding and swapping mods I eventually narrowed it down to Knob Control. Put it in, HUD disappears. Take it out, HUD returns.

No idea what could be causing that though since I'm entirely unfamiliar with Knob Control, and there are no errors thrown that I'm aware of. Everything apparently works as normal, just without the HUD.

commented

Update: after messing around in the configs, it looks like the "remove potion icons" setting in Knob Control is to blame. Changed that to False and the Cyberware HUD stuff shows up again.

Still not sure which side is causing the issue though. Might be this side attaching HUD elements to things they probably shouldn't be, might be Knob Control being too broad in their definition of "potion icons".

Either way, hope this helps.

commented

It seems to be this issue here:

if (event.getType() == ElementType.POTION_ICONS)

https://github.com/Kashdeya/KnobControl2/blob/master/src/main/java/com/kashdeya/knobcontrol/util/Client.java#L42-L47

Knob control and a hand full of others mods like potion Icon remover cancel this event all together to not show potions, Its in turn canceling the potion drawing event on Pre, and since yours draws on post it is never called. If you switch it on your side. it will be compatible with other mods that cancel the potion events.

here is the event called in GuiIngameForge.class
image

image