mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-22 03:55:18 -04:00
Fix still moving your own position with /tp, even if can't join map target player is in
This commit is contained in:
parent
9ec063762a
commit
b5c4908de7
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user