Removed teleports. Made the spawns face the middle but it doesn't work yet because of GameTeam changing the direction again.
This commit is contained in:
parent
f0c28e6234
commit
ee51766e1f
|
@ -51,6 +51,7 @@ import org.bukkit.event.player.PlayerMoveEvent;
|
|||
import org.bukkit.event.player.PlayerPickupItemEvent;
|
||||
import org.bukkit.event.player.PlayerQuitEvent;
|
||||
import org.bukkit.event.world.StructureGrowEvent;
|
||||
import org.bukkit.util.Vector;
|
||||
|
||||
public class SpeedBuilder extends SoloGame
|
||||
{
|
||||
|
@ -125,6 +126,11 @@ public class SpeedBuilder extends SoloGame
|
|||
{
|
||||
_buildData.add(new BuildData(loc.clone().subtract(0.5, 0, 0.5)));
|
||||
}
|
||||
|
||||
for (Location loc : GetTeamList().get(0).GetSpawns())
|
||||
{
|
||||
loc.setDirection(UtilAlg.getTrajectory(loc, _buildMiddle));
|
||||
}
|
||||
}
|
||||
|
||||
public void setSpeedBuilderState(SpeedBuilderState state)
|
||||
|
@ -429,8 +435,6 @@ public class SpeedBuilder extends SoloGame
|
|||
recreation.DroppedItems.clear();
|
||||
|
||||
UtilInv.Clear(recreation.Player);
|
||||
|
||||
recreation.Player.teleport(recreation.PlayerSpawn);
|
||||
}
|
||||
|
||||
//Sometimes it stops on 0.1 and has one bar green
|
||||
|
@ -493,8 +497,6 @@ public class SpeedBuilder extends SoloGame
|
|||
for (RecreationData recreation : _buildRecreations.values())
|
||||
{
|
||||
recreation.pasteBuildData(_currentBuild);
|
||||
|
||||
recreation.Player.teleport(recreation.PlayerSpawn);
|
||||
}
|
||||
|
||||
if (_buildTime > 1)
|
||||
|
|
Loading…
Reference in New Issue