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);
|
||||
continue;
|
||||
}
|
||||
boolean fill = true;
|
||||
int solid = 0;
|
||||
char[] charArray = this.getIdArray(j);
|
||||
for (int k = 0; k < newIdArray.length; k++) {
|
||||
char combined = charArray[k];
|
||||
switch (combined) {
|
||||
case 0:
|
||||
fill = false;
|
||||
continue;
|
||||
case 1:
|
||||
fill = false;
|
||||
if (currentIdArray[k] != 0) {
|
||||
solid++;
|
||||
}
|
||||
continue;
|
||||
case 1:
|
||||
currentIdArray[k] = 0;
|
||||
continue;
|
||||
default:
|
||||
@ -339,9 +336,6 @@ public class BukkitChunk_1_7 extends CharFaweChunk<Chunk, BukkitQueue17> {
|
||||
}
|
||||
}
|
||||
getParent().setCount(0, solid, section);
|
||||
if (fill) {
|
||||
this.setCount(j, Short.MAX_VALUE);
|
||||
}
|
||||
}
|
||||
|
||||
// Set biomes
|
||||
|
@ -256,20 +256,17 @@ public class ForgeChunk_All extends CharFaweChunk<Chunk, ForgeQueue_All> {
|
||||
if (!data) {
|
||||
section.setBlockMetadataArray(newDataArray);
|
||||
}
|
||||
boolean fill = true;
|
||||
int solid = 0;
|
||||
char[] charArray = this.getIdArray(j);
|
||||
for (int k = 0; k < newIdArray.length; k++) {
|
||||
char combined = charArray[k];
|
||||
switch (combined) {
|
||||
case 0:
|
||||
fill = false;
|
||||
continue;
|
||||
case 1:
|
||||
fill = false;
|
||||
if (currentIdArray[k] != 0) {
|
||||
solid++;
|
||||
}
|
||||
continue;
|
||||
case 1:
|
||||
currentIdArray[k] = 0;
|
||||
continue;
|
||||
default:
|
||||
@ -287,9 +284,6 @@ public class ForgeChunk_All extends CharFaweChunk<Chunk, ForgeQueue_All> {
|
||||
}
|
||||
}
|
||||
getParent().setCount(0, solid, section);
|
||||
if (fill) {
|
||||
this.setCount(j, Short.MAX_VALUE);
|
||||
}
|
||||
}
|
||||
|
||||
// Set biomes
|
||||
|
Loading…
Reference in New Issue
Block a user