mirror of
https://github.com/boy0001/FastAsyncWorldedit.git
synced 2024-12-01 07:03:52 +01:00
Potentially fixes #348
This commit is contained in:
parent
84fa07eec9
commit
4e1aacb566
@ -308,20 +308,17 @@ public class BukkitChunk_1_7 extends CharFaweChunk<Chunk, BukkitQueue17> {
|
|||||||
section.setIdArray(newIdArray);
|
section.setIdArray(newIdArray);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
boolean fill = true;
|
|
||||||
int solid = 0;
|
int solid = 0;
|
||||||
char[] charArray = this.getIdArray(j);
|
char[] charArray = this.getIdArray(j);
|
||||||
for (int k = 0; k < newIdArray.length; k++) {
|
for (int k = 0; k < newIdArray.length; k++) {
|
||||||
char combined = charArray[k];
|
char combined = charArray[k];
|
||||||
switch (combined) {
|
switch (combined) {
|
||||||
case 0:
|
case 0:
|
||||||
fill = false;
|
|
||||||
continue;
|
|
||||||
case 1:
|
|
||||||
fill = false;
|
|
||||||
if (currentIdArray[k] != 0) {
|
if (currentIdArray[k] != 0) {
|
||||||
solid++;
|
solid++;
|
||||||
}
|
}
|
||||||
|
continue;
|
||||||
|
case 1:
|
||||||
currentIdArray[k] = 0;
|
currentIdArray[k] = 0;
|
||||||
continue;
|
continue;
|
||||||
default:
|
default:
|
||||||
@ -339,9 +336,6 @@ public class BukkitChunk_1_7 extends CharFaweChunk<Chunk, BukkitQueue17> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
getParent().setCount(0, solid, section);
|
getParent().setCount(0, solid, section);
|
||||||
if (fill) {
|
|
||||||
this.setCount(j, Short.MAX_VALUE);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set biomes
|
// Set biomes
|
||||||
|
@ -256,20 +256,17 @@ public class ForgeChunk_All extends CharFaweChunk<Chunk, ForgeQueue_All> {
|
|||||||
if (!data) {
|
if (!data) {
|
||||||
section.setBlockMetadataArray(newDataArray);
|
section.setBlockMetadataArray(newDataArray);
|
||||||
}
|
}
|
||||||
boolean fill = true;
|
|
||||||
int solid = 0;
|
int solid = 0;
|
||||||
char[] charArray = this.getIdArray(j);
|
char[] charArray = this.getIdArray(j);
|
||||||
for (int k = 0; k < newIdArray.length; k++) {
|
for (int k = 0; k < newIdArray.length; k++) {
|
||||||
char combined = charArray[k];
|
char combined = charArray[k];
|
||||||
switch (combined) {
|
switch (combined) {
|
||||||
case 0:
|
case 0:
|
||||||
fill = false;
|
|
||||||
continue;
|
|
||||||
case 1:
|
|
||||||
fill = false;
|
|
||||||
if (currentIdArray[k] != 0) {
|
if (currentIdArray[k] != 0) {
|
||||||
solid++;
|
solid++;
|
||||||
}
|
}
|
||||||
|
continue;
|
||||||
|
case 1:
|
||||||
currentIdArray[k] = 0;
|
currentIdArray[k] = 0;
|
||||||
continue;
|
continue;
|
||||||
default:
|
default:
|
||||||
@ -287,9 +284,6 @@ public class ForgeChunk_All extends CharFaweChunk<Chunk, ForgeQueue_All> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
getParent().setCount(0, solid, section);
|
getParent().setCount(0, solid, section);
|
||||||
if (fill) {
|
|
||||||
this.setCount(j, Short.MAX_VALUE);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set biomes
|
// Set biomes
|
||||||
|
Loading…
Reference in New Issue
Block a user