mirror of
https://git.neolegacy.dev/neoStudiosLCE/neoLegacy.git
synced 2026-11-30 16:15:03 +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
@@ -22,6 +22,12 @@ void ItemSpriteRenderer::render(shared_ptr<Entity> e, double x, double y, double
|
||||
{
|
||||
// the icon is already cached in the item object, so there should not be any performance impact by not caching it here
|
||||
Icon *icon = sourceItem->getIcon(sourceItemAuxValue);
|
||||
bool lingering = false;
|
||||
if (e->instanceof(eTYPE_THROWNPOTION) && dynamic_pointer_cast<ThrownPotion>(e)->isLingering())
|
||||
{
|
||||
icon = Item::lingering_potion->getIcon(0);
|
||||
lingering = true;
|
||||
}
|
||||
if (icon == nullptr)
|
||||
{
|
||||
return;
|
||||
@@ -35,7 +41,7 @@ void ItemSpriteRenderer::render(shared_ptr<Entity> e, double x, double y, double
|
||||
bindTexture(e);
|
||||
Tesselator *t = Tesselator::getInstance();
|
||||
|
||||
if (icon == PotionItem::getTexture(PotionItem::THROWABLE_ICON) )
|
||||
if (lingering || icon == PotionItem::getTexture(PotionItem::THROWABLE_ICON) )
|
||||
{
|
||||
|
||||
int col = PotionBrewing::getColorValue((dynamic_pointer_cast<ThrownPotion>(e) )->getPotionValue(), false);
|
||||
|
||||
Reference in new issue
Block a user