Skip to content

Commit 76171ba

Browse files
committed
Compiler errors fixed for execute in SetWarpCommand.kt.
Signed-off-by: Pavel Erokhin (MairwunNx) <[email protected]>
1 parent 0b35b8d commit 76171ba

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/kotlin/com/mairwunnx/projectessentials/warps/commands/SetWarpCommand.kt

+3-3
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,9 @@ object SetWarpCommand {
5353
val warpName = StringArgumentType.getString(c, "warp name")
5454
val clientWorld = c.source.world.worldInfo.worldName
5555
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()
56+
val xPos = player.positionVec.x.toInt()
57+
val yPos = player.positionVec.y.toInt()
58+
val zPos = player.positionVec.z.toInt()
5959
val yaw = player.rotationYaw
6060
val pitch = player.rotationPitch
6161
WarpModelUtils.warpModel.warps.forEach {

0 commit comments

Comments
 (0)