Skip to content

Commit

Permalink
fix /tp
Browse files Browse the repository at this point in the history
  • Loading branch information
UnknownShadow200 committed Sep 8, 2018
1 parent 1e2ca38 commit cd34e44
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions fCraft/Commands/ModerationCommands.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1324,7 +1324,7 @@ static void UnfreezeHandler(Player player, CommandReader cmd)
player.LastPosition = player.Position;
}

Position pos = new Position(x, y, z);
Position pos = Position.FromFeet(x, y, z);
pos.R = player.Position.R;
pos.L = player.Position.L;
player.TeleportTo(pos);
Expand All @@ -1344,7 +1344,7 @@ static void UnfreezeHandler(Player player, CommandReader cmd)
player.LastPosition = player.Position;
}

Position pos = new Position(x, y, z);
Position pos = Position.FromFeet(x, y, z);
pos.R = player.Position.R;
pos.L = player.Position.L;
player.TeleportTo(pos);
Expand Down Expand Up @@ -1378,7 +1378,7 @@ static void UnfreezeHandler(Player player, CommandReader cmd)
player.LastPosition = player.Position;
}

Position pos = new Position(x, y, z);
Position pos = Position.FromFeet(x, y, z);
pos.R = (byte)rot;
pos.L = (byte)lot;
player.TeleportTo(pos);
Expand Down Expand Up @@ -1553,7 +1553,7 @@ static void UnfreezeHandler(Player player, CommandReader cmd)
int y = player.Position.BlockY;
int z = player.WorldMap.HighestFreeZ(x, y);

Position pos = new Position(x, y, z);
Position pos = Position.FromFeet(x, y, z);
pos.R = player.Position.R;
pos.L = player.Position.L;
player.TeleportTo(pos);
Expand Down

0 comments on commit cd34e44

Please sign in to comment.