Fix incorrect custom location

This commit is contained in:
Sam 2017-05-15 19:55:58 +01:00
parent 989c9a028c
commit 4b6b04d4eb

View File

@ -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);
}