3
0
Mirror von https://github.com/IntellectualSites/FastAsyncWorldEdit.git synchronisiert 2024-11-19 17:30:08 +01:00

Utilise if for copy creation

Dieser Commit ist enthalten in:
dordsor21 2024-03-17 09:07:50 +00:00
Ursprung 169d0054e8
Commit 249c5674e1
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 1E53E88969FFCF0B
6 geänderte Dateien mit 24 neuen und 6 gelöschten Zeilen

Datei anzeigen

@ -404,9 +404,12 @@ public class PaperweightGetBlocks extends CharGetBlocks implements BukkitGetBloc
forceLoadSections = false;
ServerLevel nmsWorld = serverLevel;
LevelChunk nmsChunk = ensureLoaded(nmsWorld, chunkX, chunkZ);
PaperweightGetBlocks_Copy copy = createCopy ? new PaperweightGetBlocks_Copy(nmsChunk) : null;
PaperweightGetBlocks_Copy copy;
if (createCopy) {
copy = new PaperweightGetBlocks_Copy(nmsChunk);
copies.put(copyKey, copy);
} else {
copy = null;
}
boolean fastmode = set.isFastMode() && Settings.settings().QUEUE.NO_TICK_FASTMODE;

Datei anzeigen

@ -395,9 +395,12 @@ public class PaperweightGetBlocks extends CharGetBlocks implements BukkitGetBloc
forceLoadSections = false;
ServerLevel nmsWorld = serverLevel;
LevelChunk nmsChunk = ensureLoaded(nmsWorld, chunkX, chunkZ);
PaperweightGetBlocks_Copy copy = createCopy ? new PaperweightGetBlocks_Copy(nmsChunk) : null;
PaperweightGetBlocks_Copy copy;
if (createCopy) {
copy = new PaperweightGetBlocks_Copy(nmsChunk);
copies.put(copyKey, copy);
} else {
copy = null;
}
// Remove existing tiles. Create a copy so that we can remove blocks

Datei anzeigen

@ -398,9 +398,12 @@ public class PaperweightGetBlocks extends CharGetBlocks implements BukkitGetBloc
forceLoadSections = false;
ServerLevel nmsWorld = serverLevel;
LevelChunk nmsChunk = ensureLoaded(nmsWorld, chunkX, chunkZ);
PaperweightGetBlocks_Copy copy = createCopy ? new PaperweightGetBlocks_Copy(nmsChunk) : null;
PaperweightGetBlocks_Copy copy;
if (createCopy) {
copy = new PaperweightGetBlocks_Copy(nmsChunk);
copies.put(copyKey, copy);
} else {
copy = null;
}
// Remove existing tiles. Create a copy so that we can remove blocks

Datei anzeigen

@ -397,9 +397,12 @@ public class PaperweightGetBlocks extends CharGetBlocks implements BukkitGetBloc
forceLoadSections = false;
ServerLevel nmsWorld = serverLevel;
LevelChunk nmsChunk = ensureLoaded(nmsWorld, chunkX, chunkZ);
PaperweightGetBlocks_Copy copy = createCopy ? new PaperweightGetBlocks_Copy(nmsChunk) : null;
PaperweightGetBlocks_Copy copy;
if (createCopy) {
copy = new PaperweightGetBlocks_Copy(nmsChunk);
copies.put(copyKey, copy);
} else {
copy = null;
}
// Remove existing tiles. Create a copy so that we can remove blocks

Datei anzeigen

@ -383,9 +383,12 @@ public class PaperweightGetBlocks extends CharGetBlocks implements BukkitGetBloc
forceLoadSections = false;
ServerLevel nmsWorld = serverLevel;
LevelChunk nmsChunk = ensureLoaded(nmsWorld, chunkX, chunkZ);
PaperweightGetBlocks_Copy copy = createCopy ? new PaperweightGetBlocks_Copy(nmsChunk) : null;
PaperweightGetBlocks_Copy copy;
if (createCopy) {
copy = new PaperweightGetBlocks_Copy(nmsChunk);
copies.put(copyKey, copy);
} else {
copy = null;
}
// Remove existing tiles. Create a copy so that we can remove blocks

Datei anzeigen

@ -383,9 +383,12 @@ public class PaperweightGetBlocks extends CharGetBlocks implements BukkitGetBloc
forceLoadSections = false;
ServerLevel nmsWorld = serverLevel;
LevelChunk nmsChunk = ensureLoaded(nmsWorld, chunkX, chunkZ);
PaperweightGetBlocks_Copy copy = createCopy ? new PaperweightGetBlocks_Copy(nmsChunk) : null;
PaperweightGetBlocks_Copy copy;
if (createCopy) {
copy = new PaperweightGetBlocks_Copy(nmsChunk);
copies.put(copyKey, copy);
} else {
copy = null;
}
// Remove existing tiles. Create a copy so that we can remove blocks