mojira.dev

Mezumona

Assigned

No issues.

Reported

No issues.

Comments

Maybe, I found solution for this problem that have plagued us for years.

In SSP, tamed wolves probably do not growl whatever happens.
But, on SMP, when the owner of wolves hurt other players or are attacked from them,
tamed wolves will growl even if they had sat still.
In addition, when the wolves are angly, they can despawn.
For that reason, they was gone suddenly...

step to magic the wolves away:

  1. tame a wolf

  2. sit him

  3. attack another player (at this time, he growls sitting there)

  4. all players, go to a place which is 200m away from him

  5. go back

  6. he disappeared...

I think, the condition that wolf get angry has a mistake.

Perhaps, This code will work well.

EntityWolf.java (MCP v7.44: MC 1.5.1)

public void setAttackTarget(EntityLiving par1EntityLiving)
{
    super.setAttackTarget(par1EntityLiving);

    // if (par1EntityLiving instanceof EntityPlayer)
    if (par1EntityLiving instanceof EntityPlayer && !this.isTamed())
    {
        this.setAngry(true);
    }
}