Move block farther away for Player#setRotation (#8514)
This commit is contained in:
parent
c67f26d42a
commit
fed16ccbff
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue