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 09:01:19 +02:00
Ursprung 97c71ddbac
Commit 9cdeae4328

Datei anzeigen

@ -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)
);