Skip to content

Commit

Permalink
fix location.cursor_on, entity.describe for zombies (profession bork)
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Jul 4, 2020
1 parent a8e1e38 commit 57c566d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Expand Up @@ -1567,7 +1567,7 @@ else if (mtr.angle == BlockFace.EAST) {
}
RayTraceResult traced = object.getWorld().rayTraceBlocks(object.getEyeLocation(), object.getEyeLocation().getDirection(), range);
if (traced != null && traced.getHitBlock() != null) {
return new LocationTag(traced.getHitBlock().getWorld(), traced.getHitPosition());
return new LocationTag(traced.getHitBlock().getLocation());
}
return null;
});
Expand Down
Expand Up @@ -18,7 +18,6 @@ public static boolean describes(ObjectTag entity) {
return false;
}
return ((EntityTag) entity).getBukkitEntityType() == EntityType.VILLAGER
|| ((EntityTag) entity).getBukkitEntityType() == EntityType.ZOMBIE
|| ((EntityTag) entity).getBukkitEntityType() == EntityType.ZOMBIE_VILLAGER;
}

Expand Down Expand Up @@ -102,7 +101,7 @@ public void adjust(Mechanism mechanism) {
// <--[mechanism]
// @object EntityTag
// @name profession
// @input Element
// @input ElementTag
// @description
// Changes the entity's profession.
// Currently, only Villager-type entities can have professions.
Expand Down

0 comments on commit 57c566d

Please sign in to comment.