mojira.dev
MC-119607

Llamas, unlike horses, can be kept feeding hay bales even if in love mode

The bug

Llamas, unlike horses, can be kept feeding hay bales even if in love mode.

How to reproduce

  1. Spawn in a single llama

  2. Tame said llama

  3. /gamemode survival

  4. /give @p hay_block 64

  5. Give llama a hay bale to bring it to love mode

  6. While in love mode, keep feeding the hay blocks. This has no effect on llama, but removes items from players inventory.

Repeat with a horse and golden carrots. Horse while in love mode will refuse taking more golden carrots from the player until it successfully breeds, or time outs from the love mode.

Attachments

Comments 1

Suggested fix attached. The problem is that llamas and AbstractHorse behaviour with food and mating is different and llama's code is missing one statement (see highlighted added case in the files). Replicating horse code makes both behaviours equivalent therefore consistent.

gnembon

migrated

Confirmed

hay_bale, llama

Minecraft 1.12, Minecraft 17w31a, Minecraft 1.12.1 Pre-Release 1, Minecraft 1.12.1, Minecraft 1.12.2 Pre-Release 1, ..., Minecraft 1.13-pre8, Minecraft 1.13-pre10, Minecraft 1.13, Minecraft 18w30b, Minecraft 18w31a

Minecraft 18w32a

Retrieved