We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0b35b8d commit 76171baCopy full SHA for 76171ba
src/main/kotlin/com/mairwunnx/projectessentials/warps/commands/SetWarpCommand.kt
@@ -53,9 +53,9 @@ object SetWarpCommand {
53
val warpName = StringArgumentType.getString(c, "warp name")
54
val clientWorld = c.source.world.worldInfo.worldName
55
val worldId = c.source.world.worldType.id
56
- val xPos = player.posX.toInt()
57
- val yPos = player.posY.toInt()
58
- val zPos = player.posZ.toInt()
+ val xPos = player.positionVec.x.toInt()
+ val yPos = player.positionVec.y.toInt()
+ val zPos = player.positionVec.z.toInt()
59
val yaw = player.rotationYaw
60
val pitch = player.rotationPitch
61
WarpModelUtils.warpModel.warps.forEach {
0 commit comments