Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-20 21:40:06 +01:00
stupid ChunkPosition's are relative to the chunk
Dieser Commit ist enthalten in:
Ursprung
078f48c0fb
Commit
5c4f1d75b5
@ -89,7 +89,7 @@ public class CraftChunk implements Chunk {
|
|||||||
for (Object obj : chunk.l.keySet().toArray()) {
|
for (Object obj : chunk.l.keySet().toArray()) {
|
||||||
if (!(obj instanceof ChunkPosition)) continue;
|
if (!(obj instanceof ChunkPosition)) continue;
|
||||||
ChunkPosition position = (ChunkPosition) obj;
|
ChunkPosition position = (ChunkPosition) obj;
|
||||||
entities[index++] = worldServer.getWorld().getBlockAt(position.a, position.b, position.c).getState();
|
entities[index++] = worldServer.getWorld().getBlockAt(position.a + (chunk.j << 4), position.b, position.c + (chunk.k << 4)).getState();
|
||||||
}
|
}
|
||||||
return entities;
|
return entities;
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren