geforkt von Mirrors/Paper
Fixed Chunk cache in world
Dieser Commit ist enthalten in:
Ursprung
3629580868
Commit
8acebcd7d6
@ -278,7 +278,7 @@ public class World implements IBlockAccess {
|
|||||||
int lastXAccessed = Integer.MIN_VALUE;
|
int lastXAccessed = Integer.MIN_VALUE;
|
||||||
int lastZAccessed = Integer.MIN_VALUE;
|
int lastZAccessed = Integer.MIN_VALUE;
|
||||||
public Chunk c(int i, int j) {
|
public Chunk c(int i, int j) {
|
||||||
if(lastXAccessed != i || lastZAccessed != j) {
|
if(lastChunkAccessed == null || lastXAccessed != i || lastZAccessed != j) {
|
||||||
lastXAccessed = i;
|
lastXAccessed = i;
|
||||||
lastZAccessed = j;
|
lastZAccessed = j;
|
||||||
lastChunkAccessed = this.G.b(i, j);
|
lastChunkAccessed = this.G.b(i, j);
|
||||||
@ -1367,7 +1367,12 @@ public class World implements IBlockAccess {
|
|||||||
|
|
||||||
if (!this.f(k1, 64, l1)) {
|
if (!this.f(k1, 64, l1)) {
|
||||||
--y;
|
--y;
|
||||||
} else if (!this.b(k1, l1).g()) {
|
} else {
|
||||||
|
Chunk chunk = this.b(k1, l1);
|
||||||
|
if(chunk == null) {
|
||||||
|
System.out.println(k1 + "," + l1);
|
||||||
|
}
|
||||||
|
if (!chunk.g()) {
|
||||||
int i2 = this.A.size();
|
int i2 = this.A.size();
|
||||||
int j2;
|
int j2;
|
||||||
|
|
||||||
@ -1399,6 +1404,7 @@ public class World implements IBlockAccess {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public void e() {
|
public void e() {
|
||||||
int i = this.a(1.0F);
|
int i = this.a(1.0F);
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren