From 19fcccef8206bb172a1eaebf1af8e5fd0a61412c Mon Sep 17 00:00:00 2001 From: lixfel Date: Sat, 23 Feb 2019 20:34:22 +0100 Subject: [PATCH] Position fixes --- src/me/yaruma/fightsystem/FightSystem.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/me/yaruma/fightsystem/FightSystem.java b/src/me/yaruma/fightsystem/FightSystem.java index 4f8e33d..b4162f1 100644 --- a/src/me/yaruma/fightsystem/FightSystem.java +++ b/src/me/yaruma/fightsystem/FightSystem.java @@ -99,15 +99,15 @@ public class FightSystem extends JavaPlugin { //Rotate team1corner to edge (min. x, min. y, min. z) if(schemsizeX < 0){ schemsizeX = -schemsizeX; - team1cornerX -= 2*schemsizeX; + team1cornerX -= schemsizeX; } if(schemsizeY < 0){ schemsizeY = -schemsizeY; - team1cornerY -= 2*schemsizeY; + team1cornerY -= schemsizeY; } if(schemsizeZ < 0){ schemsizeZ = -schemsizeZ; - team1cornerZ -= 2*schemsizeZ; + team1cornerZ -= schemsizeZ; } //Compute various positions @@ -125,7 +125,7 @@ public class FightSystem extends JavaPlugin { Team1SpawnLoc = new Location(world, Team1centerX, Team1centerY + schemsizeY, Team1centerZ); - Team2SpawnLoc = new Location(world, Team1centerX, Team1centerY + schemsizeY, Team1centerZ); + Team2SpawnLoc = new Location(world, Team2centerX, Team2centerY + schemsizeY, Team2centerZ); SpecSpawnLoc = new Location(world, Team1centerX + team1toTeam2distanceX/2, Team1centerY + team1toTeam2distanceY/2 + schemsizeY/2, Team1centerZ + team1toTeam2distanceZ/2);