Dragon Survival [Forge]

Dragon Survival [Forge]

685k Downloads

[1.20.1 Bug]: Invisible Dragons Not Affected By Glowing

ByThePowerOfScience opened this issue · 1 comments

commented

■ Your Discord ID or other contacts

discord@abadhaiku

■ Dragon Survival version

1.20.1-11.06.2024

■ Forge/Neoforge version

Forge 47.2.0 1.20.1

■ Single game or server?

Single-player (Default)

■ Describe the bug

Dragons under the effects of Invisibility cannot be affected by Glowing, nor do other items that detect invisibility (such as the Ring of Invisibility from Iron's Spellbooks) work on them.

■ Crash Report File and Logs

No response

commented

I found why the issue is occurring:

if (player == null || player.hasEffect(MobEffects.INVISIBILITY)) {
return;
}

Looks like dragons don't have a custom invisibility handler, instead they just don't render at all while invisible. I think Forge has a "custom invisibility handler" interface if I remember correctly, so you may want to take a look at that.

In the meantime, I'll probably just make it render with no alpha while invisible for my patch.