1
0

Merge branch 'master' of github.com:tigerw/MCServer into tigerw-master

Conflicts:
	MCServer/webadmin/template.html
This commit is contained in:
Alexander Harkness 2013-07-31 08:22:34 +01:00
commit c700108ab6
2 changed files with 25 additions and 41 deletions

View File

@ -37,6 +37,7 @@ function HandleCarpetCommand( Split, Player )
if( Carpet == nil ) then
Carpets[ Player ] = cCarpet:new()
Player:SendMessage("You're on a magic carpet!" )
Player:SendMessage("Look straight down to descend. Jump to ascend!" )
else
Carpet:remove()
Carpets[ Player ] = nil
@ -72,8 +73,7 @@ function OnPlayerMoving(Player)
Carpet:moveTo( cLocation:new( Player:GetPosX(), Player:GetPosY() - 1, Player:GetPosZ() ) )
else
if( Player:GetPosY() < Carpet:getY() ) then
LOGINFO("Fell tru mc!")
Player:TeleportTo( Player:GetPosX(), Carpet:getY(), Player:GetPosZ() )
Player:TeleportToCoords(Player:GetPosX(), Carpet:getY(), Player:GetPosZ())
end
Carpet:moveTo( cLocation:new( Player:GetPosX(), Player:GetPosY(), Player:GetPosZ() ) )
end

File diff suppressed because one or more lines are too long