From 8de15e0af5de4457a1e83ce96469f595f1aa39ed Mon Sep 17 00:00:00 2001 From: Lixfel Date: Sun, 17 Dec 2023 16:29:04 +0100 Subject: [PATCH] Fix rotation of teamname display in gamemodes without schematic rotation Signed-off-by: Lixfel --- .../src/de/steamwar/fightsystem/fight/FightSchematic.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FightSystem_Core/src/de/steamwar/fightsystem/fight/FightSchematic.java b/FightSystem_Core/src/de/steamwar/fightsystem/fight/FightSchematic.java index ee1ab0a..426c66e 100644 --- a/FightSystem_Core/src/de/steamwar/fightsystem/fight/FightSchematic.java +++ b/FightSystem_Core/src/de/steamwar/fightsystem/fight/FightSchematic.java @@ -198,7 +198,7 @@ public class FightSchematic extends StateDependent { } length -= 1; - AffineTransform aT = new AffineTransform().rotateY(rotate ? 180 : 0); + AffineTransform aT = new AffineTransform().rotateY(((team == Fight.getRedTeam()) == (Config.BlueToRedZ > 0)) ? 180 : 0); Location base = new Location(Config.world, region.centerX(), team.getExtendRegion().getMaxY(), region.centerZ()); for(int i = 0; i < characters.length; i++){ WorldeditWrapper.impl.pasteClipboard(characters[i], base, new Vector(offsets[i] - length/2, 0, -region.getSizeZ()/2), aT);