Added vegetation to horse.

Added Leash method to UtilEnt
This commit is contained in:
Jonathan Williams 2013-12-20 03:52:43 -05:00
parent 379b0d0d75
commit f504cb5a8d
3 changed files with 1239 additions and 0 deletions

Binary file not shown.

View File

@ -55,6 +55,17 @@ public class UtilEnt
}
}
public static void Leash(Entity leashed, Entity holder, boolean pull, boolean breakable)
{
if (((CraftEntity)leashed).getHandle() instanceof EntityInsentient)
{
EntityInsentient creature = (EntityInsentient)((CraftEntity)leashed).getHandle();
creature.PullWhileLeashed = pull;
creature.BreakLeash = breakable;
}
}
public static void Vegetate(Entity entity)
{
try