Fix incorrect custom location
This commit is contained in:
parent
989c9a028c
commit
4b6b04d4eb
@ -384,6 +384,7 @@ public class Moba extends TeamGame
|
||||
|
||||
// Teleport players to their respective spawns
|
||||
GameTeam team = GetTeam(player);
|
||||
Location toTeleport = WorldData.GetCustomLocs("SPAWN " + team.GetName().toUpperCase() + " " + mobaPlayer.Role.getLane().toString()).get(0);
|
||||
toTeleport.setYaw(UtilAlg.GetYaw(UtilAlg.getTrajectory(toTeleport, GetSpectatorLocation())));
|
||||
player.teleport(toTeleport);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user