Crendgrim/AutoHUD

Adding compat with segmented

Closed this issue · 2 comments

Hi!
I'm working on a mod that makes the hotbar segmented, and I'd like to add support for your mod. The current issue is that the hotbar only gets shown when selecting an actual slot, and not when selecting a segment, which is something that doesn't yet interact with minecraft's actual inventory object. (Here's the issue: csutora/segmented#6)

My question is, is there a function I can call to reveal the hotbar on demand or any other way for me to easily add support?

Thanks for the help.

https://github.com/Crendgrim/AutoHUD/blob/1.19.4/src/main/java/mod/crend/autohud/mixin/ClientPlayerInteractionManagerMixin.java

This controls the vanilla "on slot change" trigger. You could copy that call into your mod if AutoHUD is loaded.

thanks, managed to do it!