fix: stack sizes not rendering in REI recipes

This commit is contained in:
Linnea Gräf
2025-01-12 15:52:32 +01:00
parent aa7e2571af
commit 3d3d521a6c

View File

@@ -39,10 +39,9 @@ object NEUItemEntryRenderer : EntryRenderer<SBItemStack> {
context.matrices.push() context.matrices.push()
context.matrices.translate(bounds.centerX.toFloat(), bounds.centerY.toFloat(), 0F) context.matrices.translate(bounds.centerX.toFloat(), bounds.centerY.toFloat(), 0F)
context.matrices.scale(bounds.width.toFloat() / 16F, bounds.height.toFloat() / 16F, 1f) context.matrices.scale(bounds.width.toFloat() / 16F, bounds.height.toFloat() / 16F, 1f)
context.drawItemWithoutEntity( val item = entry.asItemEntry().value
entry.asItemEntry().value, context.drawItemWithoutEntity(item, -8, -8, )
-8, -8, context.drawStackOverlay(minecraft.textRenderer, item, -8, -8)
)
context.matrices.pop() context.matrices.pop()
} }