Vivecraft

Vivecraft

5M Downloads

redirect conflict with controllable on forge

fayer3 opened this issue ยท 0 comments

commented

this redirect conflicts with theirs
can be fixed by using a mixin extras wrapper

@Redirect(method = "renderPlayerList", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/KeyMapping;isDown()Z"))
public boolean toggleableTabListForge(KeyMapping instance) {
return instance.isDown() || ((GuiExtension) this).vivecraft$getShowPlayerList();
}

https://github.com/MrCrayfish/Controllable/blob/c4f9d1a32c81018f5e6200a44c217cc0133f3178/Forge/src/main/java/com/mrcrayfish/controllable/mixin/client/ForgeGuiMixin.java#L18-L25