From e2956123d96ddd7d71caab4b150b333a9e879251 Mon Sep 17 00:00:00 2001 From: Lixfel Date: Wed, 13 Oct 2021 08:56:03 +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 1281dba..22e9512 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 ? 0 : dims.getBlockX())/2.0, + -(Config.PasteAligned && Config.BlueToRedX != 0 ? -region.getSizeX() : dims.getBlockX())/2.0, Config.WaterDepth != 0 ? Config.WaterDepth - WorldeditWrapper.impl.getWaterDepth(clipboard) : 0, - -(Config.PasteAligned && Config.BlueToRedZ != 0 ? 0 : dims.getBlockZ())/2.0 + -(Config.PasteAligned && Config.BlueToRedZ != 0 ? -region.getSizeZ() : dims.getBlockZ())/2.0 ).add(new Vector(rotate ? 1 : 0, 0, rotate ? 1 : 0)), new AffineTransform().rotateY(rotate ? 180 : 0) );