summaryrefslogtreecommitdiffstats
path: root/MCServer
diff options
context:
space:
mode:
authornielsbreu@gmail.com <nielsbreu@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-07-03 10:13:53 +0200
committernielsbreu@gmail.com <nielsbreu@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-07-03 10:13:53 +0200
commit504f6192f77a6ba79731cb56ded63fd2fbf76ab7 (patch)
tree9f15c6ba6bc614121d28cf18f564044c14f85ccc /MCServer
parentFixed player moving between worlds. (diff)
downloadcuberite-504f6192f77a6ba79731cb56ded63fd2fbf76ab7.tar
cuberite-504f6192f77a6ba79731cb56ded63fd2fbf76ab7.tar.gz
cuberite-504f6192f77a6ba79731cb56ded63fd2fbf76ab7.tar.bz2
cuberite-504f6192f77a6ba79731cb56ded63fd2fbf76ab7.tar.lz
cuberite-504f6192f77a6ba79731cb56ded63fd2fbf76ab7.tar.xz
cuberite-504f6192f77a6ba79731cb56ded63fd2fbf76ab7.tar.zst
cuberite-504f6192f77a6ba79731cb56ded63fd2fbf76ab7.zip
Diffstat (limited to 'MCServer')
-rw-r--r--MCServer/Plugins/Core/onplayermoving.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/MCServer/Plugins/Core/onplayermoving.lua b/MCServer/Plugins/Core/onplayermoving.lua
index a3a188894..c95eb0c5a 100644
--- a/MCServer/Plugins/Core/onplayermoving.lua
+++ b/MCServer/Plugins/Core/onplayermoving.lua
@@ -6,16 +6,16 @@ function OnPlayerMoving( Player )
local X = math.floor(Player:GetPosX() / 16)
local Z = math.floor(Player:GetPosZ() / 16)
if ( (SpawnX + LimitWorldWidth - 1) < X ) then
- Player:TeleportTo(Player:GetPosX() - 1, Player:GetPosY(), Player:GetPosZ())
+ Player:TeleportToCoords(Player:GetPosX() - 1, Player:GetPosY(), Player:GetPosZ())
end
if ( (SpawnX - LimitWorldWidth + 1) > X ) then
- Player:TeleportTo(Player:GetPosX() + 1, Player:GetPosY(), Player:GetPosZ())
+ Player:TeleportToCoords(Player:GetPosX() + 1, Player:GetPosY(), Player:GetPosZ())
end
if ( (SpawnZ + LimitWorldWidth - 1) < Z ) then
- Player:TeleportTo(Player:GetPosX(), Player:GetPosY(), Player:GetPosZ() - 1)
+ Player:TeleportToCoords(Player:GetPosX(), Player:GetPosY(), Player:GetPosZ() - 1)
end
if ( (SpawnZ - LimitWorldWidth + 1) > Z ) then
- Player:TeleportTo(Player:GetPosX(), Player:GetPosY(), Player:GetPosZ() + 1)
+ Player:TeleportToCoords(Player:GetPosX(), Player:GetPosY(), Player:GetPosZ() + 1)
end
end
end \ No newline at end of file