handle icon color in itemstack icon buttons
This commit is contained in:
parent
92a9fa39df
commit
0d474e1991
@ -131,6 +131,7 @@ data class ItemStackIcon(private val itemStack: ItemStack, override val width: F
|
|||||||
|
|
||||||
pose.scale(width / 16f, height / 16f, 1f)
|
pose.scale(width / 16f, height / 16f, 1f)
|
||||||
|
|
||||||
|
guiGraphics.setColor(color.red, color.green, color.blue, color.alpha)
|
||||||
guiGraphics.renderFakeItem(itemStack, 0, 0)
|
guiGraphics.renderFakeItem(itemStack, 0, 0)
|
||||||
pose.popPose()
|
pose.popPose()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user