Skip to content
Permalink
Browse files

Try directly teleporting the armour stand to the new yaw.

  • Loading branch information...
me4502 committed Jan 12, 2017
1 parent 77b87c9 commit a7f36bfd62d0c92e36c5ae502c4c50a71f6ce567
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/main/java/com/sk89q/craftbook/mechanics/Chair.java
@@ -272,7 +272,9 @@ public void run() {
continue;
}

pl.getValue().chairEntity.getLocation().setYaw(p.getLocation().getYaw());
Location newYaw = pl.getValue().chairEntity.getLocation();
newYaw.setYaw(p.getLocation().getYaw());
pl.getValue().chairEntity.teleport(newYaw);

if (!chairBlocks.contains(new ItemInfo(pl.getValue().location)) || !p.getWorld().equals(pl.getValue().location.getWorld()) || LocationUtil.getDistanceSquared(p.getLocation(), pl.getValue().location.getLocation()) > 2)
removeChair(p);

0 comments on commit a7f36bf

Please sign in to comment.
You can’t perform that action at this time.