[trunk] Cleanup

git-svn-id: https://svn.java.net/svn/essentials~svn/trunk@1106 e251c2fe-e539-e718-e476-b85c1f46cddb
This commit is contained in:
snowleo 2011-04-03 17:16:02 +00:00
parent 05c902371a
commit bcc8387496

View File

@ -129,15 +129,15 @@ public class Commandspawnmob extends EssentialsCommand
return;
}
}
if (split1.length == 2 && "Wolf".equals(mob.name) && split1[1].equalsIgnoreCase("tamed"))
{
EntityWolf wolf = ((CraftWolf)spawned).getHandle();
if (split1.length == 2 && "Wolf".equals(mob.name) && split1[1].equalsIgnoreCase("tamed"))
{
EntityWolf wolf = ((CraftWolf) spawned).getHandle();
wolf.d(true);
wolf.a((PathEntity) null);
wolf.b(true);
wolf.health = 20;
wolf.a(user.getName());
wolf.world.a(wolf, (byte) 7);
wolf.a((PathEntity) null);
wolf.b(true);
wolf.health = 20;
wolf.a(user.getName());
wolf.world.a(wolf, (byte) 7);
}
if (split1.length == 2 && "Wolf".equals(mob.name) && split1[1].equalsIgnoreCase("angry"))
{