Skip to content

Commit

Permalink
make attach sync_server apply offset and update faster
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Jul 6, 2020
1 parent 12ce7cd commit c83fcf7
Showing 1 changed file with 6 additions and 2 deletions.
Expand Up @@ -53,10 +53,14 @@ public void run() {
return;
}
if (syncServer) {
attached.teleport(to.getLocation());
Location goal = to.getLocation();
if (positionalOffset != null) {
goal = fixedForOffset(goal.toVector(), goal.getYaw(), goal.getPitch()).toLocation(goal.getWorld());
}
attached.teleport(goal);
}
}
}.runTaskTimer(DenizenAPI.getCurrentInstance(), 20, 20);
}.runTaskTimer(DenizenAPI.getCurrentInstance(), 1, 1);
}

public void removeFrom(PlayerAttachMap map) {
Expand Down

0 comments on commit c83fcf7

Please sign in to comment.