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:
Ursprung
169d0054e8
Commit
249c5674e1
@ -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;
|
||||
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren