mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-24 09:16:06 +01:00
SPIGOT-716: Fix regenerating chunks
By: Thinkofdeath <thinkofdeath@spigotmc.org>
This commit is contained in:
parent
4af7c7ec4b
commit
3340f8d976
1 changed files with 4 additions and 0 deletions
|
@ -261,6 +261,10 @@ public class CraftWorld implements World {
|
|||
|
||||
private void chunkLoadPostProcess(net.minecraft.server.Chunk chunk, int cx, int cz) {
|
||||
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);
|
||||
|
||||
chunk.addEntities();
|
||||
|
|
Loading…
Add table
Reference in a new issue