Skip to content

Commit

Permalink
Merge pull request #13 from mathiascode/spawn
Browse files Browse the repository at this point in the history
Use correct y-coord when changing worlds
  • Loading branch information
Seadragon91 committed Mar 26, 2020
2 parents 249c56a + cb222c4 commit 5b55f2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/functions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ function TeleportToIsland(a_Player, a_IslandInfo)
nil,
function()
if (a_IslandInfo == nil) then
posY = a_Player:GetWorld():GetSpawnY()
posY = SKYBLOCK:GetSpawnY()

if (a_Player:GetWorld():GetName() ~= WORLD_NAME) then
a_Player:MoveToWorld(SKYBLOCK, true, Vector3d(posX, posY, posZ))
Expand Down

0 comments on commit 5b55f2a

Please sign in to comment.