Fixed rendering bugs & crashes (#36)

* Fixed rendering bugs & crashes
* Fixed shading of cubes (includes Steve & Camera head)
* Fixed crash from rendering of Air item in hand
* Fixed crash from right-clicking with Air item in-hand
* TripodCameraRenderer no longer uses Cube::renderHorrible

---------

Co-authored-by: Brent Da Mage <BrentDaMage@users.noreply.github.com>
This commit is contained in:
Brent
2023-08-07 04:02:35 -05:00
committed by GitHub
parent 0c8b22d36b
commit b77d42b04a
5 changed files with 7 additions and 6 deletions

View File

@@ -24,7 +24,7 @@ void HumanoidMobRenderer::additionalRendering(Mob* mob, float f)
Player* player = (Player*)mob;
int itemID = player->m_pInventory->getSelectedItemId();
if (itemID < 0)
if (itemID <= 0)
return;
ItemInstance inst(itemID, 1, 0);