mirror of
https://git.neolegacy.dev/neoStudiosLCE/neoLegacy.git
synced 2026-12-04 15:09:44 +01:00
TU46 Test content and patches
TU46 Test content, added missing commits by amending commit and cherry-picking to new branch, ready for iggy guis and tu46 bug fixes
This commit is contained in:
1 parent
8d6b69f599
commit
ff562d1644
497 files changed
+11187
-771
No files matched your search
@@ -1,4 +1,5 @@
|
||||
#include "stdafx.h"
|
||||
#include "../Minecraft.World/SkullTileEntity.h"
|
||||
#include "ItemRenderer.h"
|
||||
#include "TileRenderer.h"
|
||||
#include "EntityRenderDispatcher.h"
|
||||
@@ -393,7 +394,7 @@ void ItemRenderer::renderGuiItem(Font *font, Textures *textures, shared_ptr<Item
|
||||
{
|
||||
int itemId = item->id;
|
||||
int itemAuxValue = item->getAuxValue();
|
||||
Icon *itemIcon = item->getIcon();
|
||||
Icon *itemIcon = m_guiIconOverride != nullptr ? m_guiIconOverride : item->getIcon();
|
||||
|
||||
if (dynamic_cast<SkullItem*>(item->getItem()) != nullptr && SkullTileRenderer::instance != nullptr)
|
||||
{
|
||||
@@ -407,8 +408,15 @@ void ItemRenderer::renderGuiItem(Font *font, Textures *textures, shared_ptr<Item
|
||||
glTranslatef(x, y, 0.0f);
|
||||
glScalef(16.0f * fScaleX, 16.0f * fScaleY, 1.0f);
|
||||
glTranslatef(0.5f, 0.725f, 0.0f);
|
||||
if (itemAuxValue == SkullTileEntity::TYPE_DRAGON) glTranslatef(-2.0f / 16.0f, -1.0f / 16.0f, 0.0f);
|
||||
glRotatef(180.0f - 30.0f, 1.0f, 0.0f, 0.0f);
|
||||
glRotatef(-45.0f, 0.0f, 1.0f, 0.0f);
|
||||
if (itemAuxValue == SkullTileEntity::TYPE_DRAGON)
|
||||
{
|
||||
glTranslatef(0.0f, 0.25f, 0.0f);
|
||||
glScalef(0.6f, 0.6f, 0.6f);
|
||||
glTranslatef(0.0f, -0.25f, 0.0f);
|
||||
}
|
||||
SkullTileRenderer::instance->renderSkull(-0.5f, 0.0f, -0.5f, Facing::UP, 0.0f, itemAuxValue, extra);
|
||||
glPopMatrix();
|
||||
return;
|
||||
|
||||
Reference in new issue
Block a user