From 9cdeae4328d29fe7cfb4cf4ac18e822563a4212a Mon Sep 17 00:00:00 2001 From: Lixfel Date: Wed, 13 Oct 2021 09:01:19 +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 65ce3da..129eba7 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() : 0) - dims.getBlockX())/2.0, + Config.PasteAligned && Config.BlueToRedX != 0 ? region.getSizeX()/2.0 - dims.getBlockX() : -dims.getBlockX()/2.0, Config.WaterDepth != 0 ? Config.WaterDepth - WorldeditWrapper.impl.getWaterDepth(clipboard) : 0, - ((Config.PasteAligned && Config.BlueToRedZ != 0 ? region.getSizeZ() : 0) - dims.getBlockZ())/2.0 + Config.PasteAligned && Config.BlueToRedZ != 0 ? region.getSizeZ()/2.0 - dims.getBlockZ() : -dims.getBlockZ()/2.0 ).add(new Vector(rotate ? 1 : 0, 0, rotate ? 1 : 0)), new AffineTransform().rotateY(rotate ? 180 : 0) );