Move block farther away for Player#setRotation (#8514)

This commit is contained in:
Owen1212055 2023-06-08 22:37:59 -04:00
parent c67f26d42a
commit fed16ccbff

View file

@ -88,6 +88,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
+ targetLocation.setPitch(pitch);
+
+ org.bukkit.util.Vector direction = targetLocation.getDirection();
+ direction.multiply(9999999); // We need to move the target block.. FAR out
+ targetLocation.add(direction);
+ this.lookAt(targetLocation, io.papermc.paper.entity.LookAnchor.EYES);
+ // Paper end