* Flip stair rendering 90 degrees, to be shaded like regular blocks do.

This commit is contained in:
iProgramInCpp
2023-08-12 10:18:50 +03:00
parent 936a72b346
commit d09ef3fd04
2 changed files with 5 additions and 26 deletions

View File

@@ -238,7 +238,10 @@ void ItemRenderer::renderGuiItem(Font* font, Textures* textures, ItemInstance* i
glScalef(10, 10, 10);
glRotatef(210.0f, 1.0f, 0.0f, 0.0f);
glRotatef(45.0f, 0.0f, 1.0f, 0.0f);
glRotatef(-90.0f, 0.0f, 1.0f, 0.0f);
// TODO: Why can't we rotate stairs 90deg also? What's rotating them!?
if (Tile::tiles[itemID]->getRenderShape() != SHAPE_STAIRS)
glRotatef(-90.0f, 0.0f, 1.0f, 0.0f);
#ifdef ENH_SHADE_HELD_TILES
# define PARM_HACK , 1