The Bug
When anything other than iron golems walk on barriers, walk particles don't appear. This makes sense since the block is invisible. What doesn't make sense is the fact that when an iron golem walks on a barrier block, red walk particles appear when I don't think they should.
Steps to Reproduce
Switch into creative mode, give yourself some barriers, and place them down.
/give @s minecraft:barrier
Summon an iron golem on top of the barrier blocks and wait for it to begin walking.
Take note as to whether or not iron golems produce walking particles when traveling over barrier blocks.
Observed Behavior
Iron golems produce walking particles when traveling over barrier blocks.
Expected Behavior
Iron golems would not produce walking particles when traveling over barrier blocks.
Linked issues
Attachments
Comments 16
Following on from my code analysis, I've double-checked my proposed fix and I can confidently confirm that it's fully functioning and works as expected, so I've attached two screenshots to this report, one of which shows the current code and the other that shows the fixed code. I feel this information may be quite insightful hence my reasoning for providing it. 🙂
[media][media]This does not seem to happen anymore as of 1.20-rc1. Can we find the exact fix version (possibly pre-release 3 as per MC-262505)?
Can confirm in 20w51a.