CaffeineMC / sodium

A Minecraft mod designed to improve frame rates and reduce micro-stutter
Other
4.77k stars 811 forks source link

Extended Drawers drawer icon rendering is broken by sodium #2713

Closed MattiDragon closed 1 month ago

MattiDragon commented 2 months ago

Bug Description

The icons on drawers in Extended Drawers do not render when sodium (mc1.21-0.6.0-beta.1-fabric) is installed. This issue happens both in the config UI and in world. The relevant rendering code can be found here. I have no idea what's wrong here, but as it works with indigo it should probably also work with sodium.

Reproduction Steps

  1. Install the latest version of extended drawers on fabric
  2. Open the game and place down a drawer
  3. Sneak-click the drawer with a lock item to lock it
  4. Notice how it displays an icon
  5. Install sodium
  6. Reopen the game and notice the lack of an icon

Can also be reproduced by installing modmenu and looking at the preview in the config menu under the layout group of the client tab.

Log File

latest.log

Crash Report

crash-2024-08-24_15.45.54-client.txt

IMS212 commented 2 months ago

This specific case will be fixed by https://github.com/MattiDragon/ExtendedDrawers/pull/128.

However, investigation needs to be done as to why this isn't working...

Noaaan commented 1 month ago

The same issue happens with Affinity. As it uses Fabric API's Quad rendering, which for some reason breaks with Sodium 0.6.0. https://github.com/wisp-forest/affinity/blob/main/src/main/java/io/wispforest/affinity/client/render/blockentity/AethumFluxCacheBlockEntityRenderer.java