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

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)

MukiTanuki

affects 19w46b

migrated

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

MukiTanuki

Affects 1.15

Orbic

Affects 20w11a

Orbic

In 20w12a

Orbic

In 1.16 Pre 3

migrated

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

Avoma

Can confirm in 21w05b.

migrated

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