Skip to content

Commit 773bbd7

Browse files
committed
Compiler erros fixed in SetHomeCommand.kt.
Signed-off-by: Pavel Erokhin (MairwunNx) <[email protected]>
1 parent d6daddc commit 773bbd7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/kotlin/com/mairwunnx/projectessentials/home/commands/SetHomeCommand.kt

+3-3
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,9 @@ object SetHomeCommand {
6969
}
7070
val clientWorld = c.source.world.worldInfo.worldName
7171
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()
72+
val xPos = player.positionVec.x.toInt()
73+
val yPos = player.positionVec.y.toInt()
74+
val zPos = player.positionVec.z.toInt()
7575
val yaw = player.rotationYaw
7676
val pitch = player.rotationPitch
7777
val homeModel = StorageBase.getData(playerUUID).homes

0 commit comments

Comments
 (0)