Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-10-03 20:21:05 +02: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;
|
forceLoadSections = false;
|
||||||
ServerLevel nmsWorld = serverLevel;
|
ServerLevel nmsWorld = serverLevel;
|
||||||
LevelChunk nmsChunk = ensureLoaded(nmsWorld, chunkX, chunkZ);
|
LevelChunk nmsChunk = ensureLoaded(nmsWorld, chunkX, chunkZ);
|
||||||
PaperweightGetBlocks_Copy copy = createCopy ? new PaperweightGetBlocks_Copy(nmsChunk) : null;
|
PaperweightGetBlocks_Copy copy;
|
||||||
if (createCopy) {
|
if (createCopy) {
|
||||||
|
copy = new PaperweightGetBlocks_Copy(nmsChunk);
|
||||||
copies.put(copyKey, copy);
|
copies.put(copyKey, copy);
|
||||||
|
} else {
|
||||||
|
copy = null;
|
||||||
}
|
}
|
||||||
boolean fastmode = set.isFastMode() && Settings.settings().QUEUE.NO_TICK_FASTMODE;
|
boolean fastmode = set.isFastMode() && Settings.settings().QUEUE.NO_TICK_FASTMODE;
|
||||||
|
|
||||||
|
@ -395,9 +395,12 @@ public class PaperweightGetBlocks extends CharGetBlocks implements BukkitGetBloc
|
|||||||
forceLoadSections = false;
|
forceLoadSections = false;
|
||||||
ServerLevel nmsWorld = serverLevel;
|
ServerLevel nmsWorld = serverLevel;
|
||||||
LevelChunk nmsChunk = ensureLoaded(nmsWorld, chunkX, chunkZ);
|
LevelChunk nmsChunk = ensureLoaded(nmsWorld, chunkX, chunkZ);
|
||||||
PaperweightGetBlocks_Copy copy = createCopy ? new PaperweightGetBlocks_Copy(nmsChunk) : null;
|
PaperweightGetBlocks_Copy copy;
|
||||||
if (createCopy) {
|
if (createCopy) {
|
||||||
|
copy = new PaperweightGetBlocks_Copy(nmsChunk);
|
||||||
copies.put(copyKey, copy);
|
copies.put(copyKey, copy);
|
||||||
|
} else {
|
||||||
|
copy = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Remove existing tiles. Create a copy so that we can remove blocks
|
// 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;
|
forceLoadSections = false;
|
||||||
ServerLevel nmsWorld = serverLevel;
|
ServerLevel nmsWorld = serverLevel;
|
||||||
LevelChunk nmsChunk = ensureLoaded(nmsWorld, chunkX, chunkZ);
|
LevelChunk nmsChunk = ensureLoaded(nmsWorld, chunkX, chunkZ);
|
||||||
PaperweightGetBlocks_Copy copy = createCopy ? new PaperweightGetBlocks_Copy(nmsChunk) : null;
|
PaperweightGetBlocks_Copy copy;
|
||||||
if (createCopy) {
|
if (createCopy) {
|
||||||
|
copy = new PaperweightGetBlocks_Copy(nmsChunk);
|
||||||
copies.put(copyKey, copy);
|
copies.put(copyKey, copy);
|
||||||
|
} else {
|
||||||
|
copy = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Remove existing tiles. Create a copy so that we can remove blocks
|
// 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;
|
forceLoadSections = false;
|
||||||
ServerLevel nmsWorld = serverLevel;
|
ServerLevel nmsWorld = serverLevel;
|
||||||
LevelChunk nmsChunk = ensureLoaded(nmsWorld, chunkX, chunkZ);
|
LevelChunk nmsChunk = ensureLoaded(nmsWorld, chunkX, chunkZ);
|
||||||
PaperweightGetBlocks_Copy copy = createCopy ? new PaperweightGetBlocks_Copy(nmsChunk) : null;
|
PaperweightGetBlocks_Copy copy;
|
||||||
if (createCopy) {
|
if (createCopy) {
|
||||||
|
copy = new PaperweightGetBlocks_Copy(nmsChunk);
|
||||||
copies.put(copyKey, copy);
|
copies.put(copyKey, copy);
|
||||||
|
} else {
|
||||||
|
copy = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Remove existing tiles. Create a copy so that we can remove blocks
|
// 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;
|
forceLoadSections = false;
|
||||||
ServerLevel nmsWorld = serverLevel;
|
ServerLevel nmsWorld = serverLevel;
|
||||||
LevelChunk nmsChunk = ensureLoaded(nmsWorld, chunkX, chunkZ);
|
LevelChunk nmsChunk = ensureLoaded(nmsWorld, chunkX, chunkZ);
|
||||||
PaperweightGetBlocks_Copy copy = createCopy ? new PaperweightGetBlocks_Copy(nmsChunk) : null;
|
PaperweightGetBlocks_Copy copy;
|
||||||
if (createCopy) {
|
if (createCopy) {
|
||||||
|
copy = new PaperweightGetBlocks_Copy(nmsChunk);
|
||||||
copies.put(copyKey, copy);
|
copies.put(copyKey, copy);
|
||||||
|
} else {
|
||||||
|
copy = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Remove existing tiles. Create a copy so that we can remove blocks
|
// 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;
|
forceLoadSections = false;
|
||||||
ServerLevel nmsWorld = serverLevel;
|
ServerLevel nmsWorld = serverLevel;
|
||||||
LevelChunk nmsChunk = ensureLoaded(nmsWorld, chunkX, chunkZ);
|
LevelChunk nmsChunk = ensureLoaded(nmsWorld, chunkX, chunkZ);
|
||||||
PaperweightGetBlocks_Copy copy = createCopy ? new PaperweightGetBlocks_Copy(nmsChunk) : null;
|
PaperweightGetBlocks_Copy copy;
|
||||||
if (createCopy) {
|
if (createCopy) {
|
||||||
|
copy = new PaperweightGetBlocks_Copy(nmsChunk);
|
||||||
copies.put(copyKey, copy);
|
copies.put(copyKey, copy);
|
||||||
|
} else {
|
||||||
|
copy = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Remove existing tiles. Create a copy so that we can remove blocks
|
// Remove existing tiles. Create a copy so that we can remove blocks
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren