SteamWar/FightSystem
Archiviert
13
1

Conditional recoloring
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Signed-off-by: Lixfel <agga-games@gmx.de>
Dieser Commit ist enthalten in:
Lixfel 2022-03-15 16:23:17 +01:00
Ursprung bb3929c563
Commit 97baf79dcb

Datei anzeigen

@ -71,6 +71,9 @@ public class FightSchematic extends StateDependent {
schematic = schem.getId(); schematic = schem.getId();
try { try {
clipboard = schem.load(); clipboard = schem.load();
if(schem.replaceColor())
replaceTeamColor(clipboard);
} catch (IOException e) { } catch (IOException e) {
team.broadcastSystem("SCHEMATIC_UNLOADABLE"); team.broadcastSystem("SCHEMATIC_UNLOADABLE");
Bukkit.getLogger().log(Level.SEVERE, e, () -> "Couldn't load Schematic " + schem.getName()); Bukkit.getLogger().log(Level.SEVERE, e, () -> "Couldn't load Schematic " + schem.getName());
@ -127,8 +130,6 @@ public class FightSchematic extends StateDependent {
private void paste(){ private void paste(){
FreezeWorld freezer = new FreezeWorld(); FreezeWorld freezer = new FreezeWorld();
replaceTeamColor(clipboard);
Vector dims = WorldeditWrapper.impl.getDimensions(clipboard); Vector dims = WorldeditWrapper.impl.getDimensions(clipboard);
WorldeditWrapper.impl.pasteClipboard( WorldeditWrapper.impl.pasteClipboard(
clipboard, clipboard,