mojira.dev
MC-93018

Wild wolves show breeding hearts but do not breed

Wild wolfs show hearts when feed raw meat.
It's misleading if they are not meant to be breed able.

Or make them breed able, i don't see why not.
Use: Make more wild wolfs for different people to tame.

Same with Ocelots. Fixed some point in 1.14

Code Analysis

Code Analysis provided by @unknown

The reasoning this is happening is because in the CanMate boolean method there are two checks for if the wolf is tamed or not. If the wolf isn't tamed it will return false. One possible fix is to remove the checks if it can be tamed or not. The method would then look like this.

Fixed Code

net/minecraft/world/entity/animal/Wolf.java

public boolean canMate(Animal p_30392_) {
      //Removing the checks for if its tamed is a possible fix for MC-93018
      if (p_30392_ == this) {
         return false;
      } else if (!(p_30392_ instanceof Wolf)) {
         return false;
      } else {
         Wolf wolf = (Wolf)p_30392_;
         if (wolf.isInSittingPose()) {
            return false;
         } else {
            return this.isInLove() && wolf.isInLove();
         }
      }
   }

Linked issues

Attachments

Comments 27

This site is for bug reports only. For feature suggestions or changes please see: Minecraft Suggestions on Reddit.

But the hearts is a bug?

So what are the hearts for? Sorry for sounding stupid but maybe i just don't know. 🙂

You're giving them meat, dogs love meat.

17 more comments

I think ocelots should be updated so they cannot be fed when not sneaking and not trusted. (Same for wolves with meat when not tamed)

Can confirm in 1.18.1.

Can confirm in 1.18.2 and 22w11a.

Can confirm in 1.19.2.

Can Confirm 1.19.3 Release Preview 3

xBufferzz

Asteraoth

(Unassigned)

Confirmed

Gameplay

Low

Mob behaviour

breeding, hearts, ocelot, particle, wolf

Minecraft 15w47b, Minecraft 15w49b, Minecraft 1.10.2, Minecraft 1.11, Minecraft 1.11.2, ..., 1.19.3, 23w18a, 1.20.1, 1.20.6, 1.21.3

Retrieved