⚠ This page is served via a proxy. Original site: https://github.com
This service does not collect credentials or authentication data.
Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,10 @@ public Vector fixedForOffset(Vector offset, float yaw, float pitch) {
public void doServerSync() {
Location goal = to.getLocation();
if (positionalOffset != null) {
goal = fixedForOffset(goal.toVector(), goal.getYaw(), goal.getPitch()).toLocation(goal.getWorld());
float yaw = goal.getYaw();
float pitch = goal.getPitch();
Vector vec = fixedForOffset(goal.toVector(), yaw, pitch);
goal = offsetRelative ? vec.toLocation(goal.getWorld(), yaw, pitch) : vec.toLocation(goal.getWorld());
}
if (noRotate) {
Location attachLoc = attached.getLocation();
Expand Down