Small Changes (Positioning)
Dieser Commit ist enthalten in:
Ursprung
fac373b5be
Commit
276a9c37fb
@ -145,15 +145,9 @@ public class FightTeam {
|
|||||||
AffineTransform aT = new AffineTransform();
|
AffineTransform aT = new AffineTransform();
|
||||||
if(rotate){
|
if(rotate){
|
||||||
aT = aT.rotateY(180);
|
aT = aT.rotateY(180);
|
||||||
v = paste.add(dimensions.getX()/2, 0, dimensions.getZ()/2).subtract(offset.multiply(-1, 1, -1));
|
v = paste.add(dimensions.getX()/2 + dimensions.getX()%2, 0, dimensions.getZ()/2 + dimensions.getZ()%2).subtract(offset.multiply(-1, 1, -1)).subtract(1, 0, 1);
|
||||||
if(Config.SchemsizeX % 2 == 0){
|
|
||||||
v = v.add(-1, 0, 0);
|
|
||||||
}
|
|
||||||
if(Config.SchemsizeZ % 2 == 0){
|
|
||||||
v = v.add(0, 0, -1);
|
|
||||||
}
|
|
||||||
}else{
|
}else{
|
||||||
v = paste.subtract(dimensions.getX()/2, 0, dimensions.getZ()/2).subtract(offset);
|
v = paste.subtract(dimensions.getX()/2 - dimensions.getX()%2, 0, dimensions.getZ()/2 - dimensions.getZ()%2).subtract(offset);
|
||||||
}
|
}
|
||||||
schem.paste(w, v, false, true, aT).flushQueue();
|
schem.paste(w, v, false, true, aT).flushQueue();
|
||||||
teleportToSpawn();
|
teleportToSpawn();
|
||||||
|
@ -70,12 +70,6 @@ public class Config {
|
|||||||
public static Location TeamRedSpawn;
|
public static Location TeamRedSpawn;
|
||||||
public static Location SpecSpawn;
|
public static Location SpecSpawn;
|
||||||
|
|
||||||
public static int TeamBluePasteX;
|
|
||||||
public static int TeamBluePasteY;
|
|
||||||
public static int TeamBluePasteZ;
|
|
||||||
public static int TeamRedPasteX;
|
|
||||||
public static int TeamRedPasteY;
|
|
||||||
public static int TeamRedPasteZ;
|
|
||||||
public static Vector TeamBluePaste;
|
public static Vector TeamBluePaste;
|
||||||
public static Vector TeamRedPaste;
|
public static Vector TeamRedPaste;
|
||||||
|
|
||||||
@ -158,24 +152,21 @@ public class Config {
|
|||||||
TeamRedCornerY = TeamBluetoReddistanceY + TeamBlueCornerY;
|
TeamRedCornerY = TeamBluetoReddistanceY + TeamBlueCornerY;
|
||||||
TeamRedCornerZ = TeamBluetoReddistanceZ + TeamBlueCornerZ;
|
TeamRedCornerZ = TeamBluetoReddistanceZ + TeamBlueCornerZ;
|
||||||
|
|
||||||
TeamBluePasteX = TeamBlueCornerX + SchemsizeX/2;
|
int teamBluePasteX = TeamBlueCornerX + SchemsizeX / 2;
|
||||||
TeamBluePasteY = TeamBlueCornerY;
|
int teamBluePasteZ = TeamBlueCornerZ + SchemsizeZ / 2;
|
||||||
TeamBluePasteZ = TeamBlueCornerZ + SchemsizeZ/2;
|
int teamRedPasteX = teamBluePasteX + TeamBluetoReddistanceX;
|
||||||
|
int teamRedPasteZ = teamBluePasteZ + TeamBluetoReddistanceZ;
|
||||||
|
|
||||||
TeamBluePaste = new Vector(TeamBlueCornerX + SchemsizeX/2, TeamBlueCornerY, TeamBlueCornerZ + SchemsizeZ/2);
|
TeamBluePaste = new Vector(teamBluePasteX, TeamBlueCornerY, teamBluePasteZ);
|
||||||
TeamRedPaste = new Vector(TeamRedCornerX + SchemsizeX/2, TeamRedCornerY, TeamRedCornerZ + SchemsizeZ/2);
|
TeamRedPaste = new Vector(teamRedPasteX, TeamRedCornerY, teamRedPasteZ);
|
||||||
|
|
||||||
TeamRedPasteX = TeamBluePasteX + TeamBluetoReddistanceX;
|
|
||||||
TeamRedPasteY = TeamBluePasteY + TeamBluetoReddistanceY;
|
|
||||||
TeamRedPasteZ = TeamBluePasteZ + TeamBluetoReddistanceZ;
|
|
||||||
|
|
||||||
World world = Bukkit.getWorlds().get(0);
|
World world = Bukkit.getWorlds().get(0);
|
||||||
TeamBlueSpawn = new Location(world, TeamBluePasteX + 0.5, TeamBluePasteY + SchemsizeY, TeamBluePasteZ + 0.5);
|
TeamBlueSpawn = new Location(world, teamBluePasteX + 0.5, TeamBlueCornerY + SchemsizeY, teamBluePasteZ + 0.5);
|
||||||
TeamRedSpawn = new Location(world, TeamRedPasteX + 0.5, TeamRedPasteY + SchemsizeY, TeamRedPasteZ + 0.5);
|
TeamRedSpawn = new Location(world, teamRedPasteX + 0.5, TeamRedCornerY + SchemsizeY, teamRedPasteZ + 0.5);
|
||||||
SpecSpawn = new Location(world,
|
SpecSpawn = new Location(world,
|
||||||
TeamBluePasteX + TeamBluetoReddistanceX/2,
|
teamBluePasteX + TeamBluetoReddistanceX/2,
|
||||||
TeamBluePasteY + TeamBluetoReddistanceY/2 + SchemsizeY/2,
|
TeamBlueCornerY + TeamBluetoReddistanceY/2 + SchemsizeY/2,
|
||||||
TeamBluePasteZ + TeamBluetoReddistanceZ/2);
|
teamBluePasteZ + TeamBluetoReddistanceZ/2);
|
||||||
|
|
||||||
if(TeamBluetoReddistanceX > 0){
|
if(TeamBluetoReddistanceX > 0){
|
||||||
ArenaMinX = TeamBlueCornerX - Schem2BorderX;
|
ArenaMinX = TeamBlueCornerX - Schem2BorderX;
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren