diff --git a/plugin/src/main/java/com/denizenscript/denizen/utilities/entity/EntityAttachmentHelper.java b/plugin/src/main/java/com/denizenscript/denizen/utilities/entity/EntityAttachmentHelper.java index e2e4c50d02..b1324770be 100644 --- a/plugin/src/main/java/com/denizenscript/denizen/utilities/entity/EntityAttachmentHelper.java +++ b/plugin/src/main/java/com/denizenscript/denizen/utilities/entity/EntityAttachmentHelper.java @@ -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();