Lib Multipart

Lib Multipart

46.7k Downloads

Custom render backend mods don't support `WorldRenderer` mixins

Kneelawk opened this issue ยท 0 comments

commented

The Issue

Currently, LibMultiPart uses a WorldRenderer mixin in order to draw custom block outlines for multipart blocks. The problem with this is that most custom Minecraft render backend mods, like Canvas, don't actually use WorldRenderer when rendering. This means that mixins into WorldRenderer never get called when custom render backends are enabled.

Screenshots

Block Outlines of WiredRedstone Wires in Canvas

2022-01-08_10 02 32

Block Outlines of WiredRedstone Wires in the Vanilla Renderer

2022-01-08_10 04 04

Potential Fix

The Fabric API provides an event for doing custom block outline rendering, allowing mods render their own block outlines and optionally cancel the default ones. This event is accessible via the WorldRenderEvents.BLOCK_OUTLINE event bus.

Pull Request

I have a fix for this issue written and I intend on submitting it as a pull request shortly.