mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-01 04:32:11 -07:00
Move block farther away for Player#setRotation (#8514)
This commit is contained in:
@@ -88,6 +88,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
+ targetLocation.setPitch(pitch);
|
+ targetLocation.setPitch(pitch);
|
||||||
+
|
+
|
||||||
+ org.bukkit.util.Vector direction = targetLocation.getDirection();
|
+ org.bukkit.util.Vector direction = targetLocation.getDirection();
|
||||||
|
+ direction.multiply(9999999); // We need to move the target block.. FAR out
|
||||||
+ targetLocation.add(direction);
|
+ targetLocation.add(direction);
|
||||||
+ this.lookAt(targetLocation, io.papermc.paper.entity.LookAnchor.EYES);
|
+ this.lookAt(targetLocation, io.papermc.paper.entity.LookAnchor.EYES);
|
||||||
+ // Paper end
|
+ // Paper end
|
||||||
|
Reference in New Issue
Block a user