Fix still moving your own position with /tp, even if can't join map target player is in

This commit is contained in:
UnknownShadow200 2017-07-11 17:20:57 +10:00
parent 9ec063762a
commit b5c4908de7

View File

@ -54,6 +54,9 @@ namespace MCGalaxy.Commands.Misc {
target.BlockUntilLoad(10);
}
// Player wasn't able to join target map, so don't move
if (p.level != lvl) return;
Position pos = bot != null ? bot.Pos : target.Pos;
Orientation rot = bot != null ? bot.Rot : target.Rot;
p.BlockUntilLoad(10); //Wait for player to spawn in new map