Skip to content

Commit

Permalink
Merged with Endal's seat PR.
Browse files Browse the repository at this point in the history
  • Loading branch information
ThePlasticPotato committed Dec 17, 2024
1 parent 26c1a58 commit b84d58a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ val Player.playerWrapper get() = (this as PlayerDuck).vs_getPlayer()
* Like [Entity.squaredDistanceTo] except the destination is transformed into world coordinates if it is a ship
*/
fun Entity.squaredDistanceToInclShips(x: Double, y: Double, z: Double): Double {
val eyePos = this.serversideEyePosition()
val eyePos = if (getShipMountedTo(this) != null) getShipMountedToData(this, null)!!.mountPosInShip.toMinecraft() else this.serversideEyePosition()
return level.squaredDistanceBetweenInclShips(x, y, z, eyePos.x, eyePos.y - 1.0, eyePos.z)
}

Expand Down

0 comments on commit b84d58a

Please sign in to comment.