Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-11-16 04:50:05 +01:00
SPIGOT-716: Fix regenerating chunks
Dieser Commit ist enthalten in:
Ursprung
30d751b362
Commit
234e60735c
@ -261,6 +261,10 @@ public class CraftWorld implements World {
|
|||||||
|
|
||||||
private void chunkLoadPostProcess(net.minecraft.server.Chunk chunk, int cx, int cz) {
|
private void chunkLoadPostProcess(net.minecraft.server.Chunk chunk, int cx, int cz) {
|
||||||
if (chunk != null) {
|
if (chunk != null) {
|
||||||
|
// moved from Chunk.<init>
|
||||||
|
for (int k = 0; k < chunk.entitySlices.length; ++k) {
|
||||||
|
chunk.entitySlices[k] = new EntitySlice(net.minecraft.server.Entity.class);
|
||||||
|
}
|
||||||
world.chunkProviderServer.chunks.put(LongHash.toLong(cx, cz), chunk);
|
world.chunkProviderServer.chunks.put(LongHash.toLong(cx, cz), chunk);
|
||||||
|
|
||||||
chunk.addEntities();
|
chunk.addEntities();
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren