SteamWar/FightSystem
Archiviert
13
1

Hotfix paste aligned
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Signed-off-by: Lixfel <agga-games@gmx.de>
Dieser Commit ist enthalten in:
Lixfel 2021-10-13 08:56:03 +02:00
Ursprung fc4b2fa321
Commit e2956123d9

Datei anzeigen

@ -132,9 +132,9 @@ public class FightSchematic extends StateDependent {
clipboard, clipboard,
new Location(Bukkit.getWorlds().get(0), region.centerX(), region.getMinY(), region.centerZ()), new Location(Bukkit.getWorlds().get(0), region.centerX(), region.getMinY(), region.centerZ()),
new Vector( 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.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)), ).add(new Vector(rotate ? 1 : 0, 0, rotate ? 1 : 0)),
new AffineTransform().rotateY(rotate ? 180 : 0) new AffineTransform().rotateY(rotate ? 180 : 0)
); );