mojira.dev
MC-147659

Some witch huts spawn the incorrect cat

The bug

Cats in witch huts are only supposed to be black, but they occasionally don't spawn as the correct type.

How to reproduce

Seed: -2326619757953434803
Coordinates: /teleport @s -1244 71 818
Seed: -953538683905638291
Coordinates: /teleport @s 89.17 72.00 114.39

Attachments

Comments 10

gaspoweredpick

When using the seed -953538683905638291 and going to the village witch hut near spawn, the resulting cat will also be incorrect (and the village will overlap the hut currently, which is a different "problem").

-(Note: don't use the seed 953538683905638291 if you want to beat the game, unless MC-88301 is fixed)

affects 19w46b

You can just update the affected versions without commenting, the comment will add nothing to the ticket.

Affects 1.15

Affects 20w11a

In 20w12a

In 1.16 Pre 3

BillyGalbreath

This happens because the cat type is prepared before it's location is set.

To fix, just set the position before preparing the type.

https://github.com/pl3xgaming/Purpur/blob/ed7b2022b7f68dcd35a6654bd617596fc4883eef/patches/server/0020-Fix-non-black-cat-types-spawning-in-swamp-huts.patch

Can confirm in 21w05b.

I am unable to reproduce this issue in 1.17.1.

gaspoweredpick

(Unassigned)

Confirmed

Mob spawning, Structures

cat, swamp_hut

Minecraft 19w14b, Minecraft 1.14 Pre-Release 1, Minecraft 1.14 Pre-Release 5, Minecraft 1.14, Minecraft 1.14.1 Pre-Release 1, ..., 1.16.4 Release Candidate 1, 1.16.4, 20w46a, 1.16.5, 21w05b

Retrieved