Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-11-16 21:10:17 +01:00
Fixed some debug
Dieser Commit ist enthalten in:
Ursprung
280880d163
Commit
5d3b8de87a
@ -106,7 +106,16 @@ public class ChunkProviderServer implements IChunkProvider {
|
|||||||
public Chunk b(int i, int j) {
|
public Chunk b(int i, int j) {
|
||||||
Chunk chunk = (Chunk) this.e.get(i, j); // CraftBukkit
|
Chunk chunk = (Chunk) this.e.get(i, j); // CraftBukkit
|
||||||
|
|
||||||
return chunk == null ? (this.g.r ? this.d(i, j) : this.b) : chunk;
|
chunk = chunk == null ? (this.g.r ? this.d(i, j) : this.b) : chunk;
|
||||||
|
if(chunk == this.b) return chunk;
|
||||||
|
if(i != chunk.j || j != chunk.k) {
|
||||||
|
MinecraftServer.a.info("Chunk (" + chunk.j + ", " + chunk.k +") stored at (" + i + ", " + j + ")");
|
||||||
|
MinecraftServer.a.info(chunk.getClass().getName());
|
||||||
|
Throwable x = new Throwable();
|
||||||
|
x.fillInStackTrace();
|
||||||
|
x.printStackTrace();
|
||||||
|
}
|
||||||
|
return chunk;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Chunk e(int i, int j) { // CraftBukkit - private->public
|
public Chunk e(int i, int j) { // CraftBukkit - private->public
|
||||||
|
@ -10,10 +10,29 @@ public class LongHashtable<V> extends LongHash
|
|||||||
|
|
||||||
public void put(int msw, int lsw, V value) {
|
public void put(int msw, int lsw, V value) {
|
||||||
put(toLong(msw, lsw), value);
|
put(toLong(msw, lsw), value);
|
||||||
|
if(value instanceof Chunk) {
|
||||||
|
Chunk c = (Chunk)value;
|
||||||
|
if(msw != c.j || lsw != c.k) {
|
||||||
|
MinecraftServer.a.info("Chunk (" + c.j + ", " + c.k +") stored at (" + msw + ", " + lsw + ")");
|
||||||
|
Throwable x = new Throwable();
|
||||||
|
x.fillInStackTrace();
|
||||||
|
x.printStackTrace();
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public V get(int msw, int lsw) {
|
public V get(int msw, int lsw) {
|
||||||
return get(toLong(msw, lsw));
|
V value = get(toLong(msw, lsw));
|
||||||
|
if(value instanceof Chunk) {
|
||||||
|
Chunk c = (Chunk)value;
|
||||||
|
if(msw != c.j || lsw != c.k) {
|
||||||
|
MinecraftServer.a.info("Chunk (" + c.j + ", " + c.k +") stored at (" + msw + ", " + lsw + ")");
|
||||||
|
Throwable x = new Throwable();
|
||||||
|
x.fillInStackTrace();
|
||||||
|
x.printStackTrace();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void put(long key, V value) {
|
public void put(long key, V value) {
|
||||||
|
@ -203,12 +203,6 @@ public class World implements IBlockAccess {
|
|||||||
}
|
}
|
||||||
result = lastChunkAccessed;
|
result = lastChunkAccessed;
|
||||||
}
|
}
|
||||||
if(result.j != i || result.k != j) {
|
|
||||||
if(this instanceof WorldServer) {
|
|
||||||
WorldServer ws = (WorldServer) this;
|
|
||||||
MinecraftServer.a.severe("Chunk fetched was not the chunk requested.");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
// CraftBukkit end
|
// CraftBukkit end
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren