Commits

Lukas A authored a9e8c8aec41
SPIGOT-619: Fixed a bug with the rotation of living entities with no AI.
No tags

src/main/java/org/bukkit/craftbukkit/entity/CraftLivingEntity.java

Modified
430 430 public boolean getCanPickupItems() {
431 431 return getHandle() instanceof EntityInsentient && ((EntityInsentient) getHandle()).canPickUpLoot;
432 432 }
433 433
434 434 @Override
435 435 public boolean teleport(Location location, PlayerTeleportEvent.TeleportCause cause) {
436 436 if (getHealth() == 0) {
437 437 return false;
438 438 }
439 439
440 - return super.teleport(location, cause);
440 + if (!super.teleport(location, cause)) {
441 + return false;
442 + }
443 +
444 + ((EntityLiving) entity).aP = location.getYaw(); // PAIL headRotation
445 +
446 + return true;
441 447 }
442 448
443 449 public boolean isLeashed() {
444 450 if (!(getHandle() instanceof EntityInsentient)) {
445 451 return false;
446 452 }
447 453 return ((EntityInsentient) getHandle()).getLeashHolder() != null;
448 454 }
449 455
450 456 public Entity getLeashHolder() throws IllegalStateException {

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut