From 97c71ddbacf4039f8a3f952ce04dc4f9e0e9e261 Mon Sep 17 00:00:00 2001 From: Lixfel Date: Wed, 13 Oct 2021 08:58:43 +0200 Subject: [PATCH] Hotfix paste aligned Signed-off-by: Lixfel --- .../src/de/steamwar/fightsystem/fight/FightSchematic.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/FightSystem_Core/src/de/steamwar/fightsystem/fight/FightSchematic.java b/FightSystem_Core/src/de/steamwar/fightsystem/fight/FightSchematic.java index 22e9512..65ce3da 100644 --- a/FightSystem_Core/src/de/steamwar/fightsystem/fight/FightSchematic.java +++ b/FightSystem_Core/src/de/steamwar/fightsystem/fight/FightSchematic.java @@ -132,9 +132,9 @@ public class FightSchematic extends StateDependent { clipboard, new Location(Bukkit.getWorlds().get(0), region.centerX(), region.getMinY(), region.centerZ()), new Vector( - -(Config.PasteAligned && Config.BlueToRedX != 0 ? -region.getSizeX() : dims.getBlockX())/2.0, + ((Config.PasteAligned && Config.BlueToRedX != 0 ? region.getSizeX() : 0) - dims.getBlockX())/2.0, Config.WaterDepth != 0 ? Config.WaterDepth - WorldeditWrapper.impl.getWaterDepth(clipboard) : 0, - -(Config.PasteAligned && Config.BlueToRedZ != 0 ? -region.getSizeZ() : dims.getBlockZ())/2.0 + ((Config.PasteAligned && Config.BlueToRedZ != 0 ? region.getSizeZ() : 0) - dims.getBlockZ())/2.0 ).add(new Vector(rotate ? 1 : 0, 0, rotate ? 1 : 0)), new AffineTransform().rotateY(rotate ? 180 : 0) );