The Twilight Forest

The Twilight Forest

140M Downloads

Mist wolf causes blind effect only when suffocating

pyz9188 opened this issue ยท 1 comments

commented

Forge Version

37.1.1

Twilight Forest Version

4.0.875

Client Log

No response

Crash Report (if applicable)

No response

Steps to Reproduce

  1. Spawn mist wolf into a wall
  2. Be sure to stand higher than it
  3. Attack

What You Expected

Mist wolf to cause blind effect whenever being attacked

What Happened Instead

Mist wolf caused blind effect only when suffocating (as in the video below)

Additional Details

bandicam.2022-01-23.09-25-56-585.mp4

Please Read and Confirm The Following

  • I have confirmed this bug can be replicated without the use of Optifine.
  • I have confirmed the details provided in this report are concise as possible and does not contained vague information (ie. Versions are properly recorded, answers to questions are clear).
  • I have confirmed this issue is unique and has not been reported already.
commented

As weird as this issue may seem, there's a very good reason as to why this is happening.
While I was investigating the code behind this, I learned that the mist wolf checks the block brightness at its location. It only inflicts blindness if it's in a dark area. Since the mist wolf is in a block, it thinks the brightness is 0, and causes blindness, while being out in the open causes it to fail since its bright. Spawning the wolf in a cave, or the dark forest where it's supposed to live will give you the effect when it attacks.
Closing this as it works as intended, this is just a special case