We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d6daddc commit 773bbd7Copy full SHA for 773bbd7
src/main/kotlin/com/mairwunnx/projectessentials/home/commands/SetHomeCommand.kt
@@ -69,9 +69,9 @@ object SetHomeCommand {
69
}
70
val clientWorld = c.source.world.worldInfo.worldName
71
val worldId = c.source.world.worldType.id
72
- val xPos = player.posX.toInt()
73
- val yPos = player.posY.toInt()
74
- val zPos = player.posZ.toInt()
+ val xPos = player.positionVec.x.toInt()
+ val yPos = player.positionVec.y.toInt()
+ val zPos = player.positionVec.z.toInt()
75
val yaw = player.rotationYaw
76
val pitch = player.rotationPitch
77
val homeModel = StorageBase.getData(playerUUID).homes
0 commit comments