Skip to content
Permalink
Browse files

fix /tp

  • Loading branch information...
UnknownShadow200 committed Sep 8, 2018
1 parent 1e2ca38 commit cd34e44f1632a51caec6e3cafe3465a46d7c31b9
Showing with 4 additions and 4 deletions.
  1. +4 −4 fCraft/Commands/ModerationCommands.cs
@@ -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);
@@ -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);
@@ -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);
@@ -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);

0 comments on commit cd34e44

Please sign in to comment.
You can’t perform that action at this time.