testserver/patches/removed/1.17/No longer needed/0490-Don-t-mark-null-chunk-...

20 lines
1.3 KiB
Diff
Raw Permalink Normal View History

2021-06-11 12:02:28 +00:00
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Mariell Hoversholm <proximyst@proximyst.com>
Date: Fri, 14 Aug 2020 23:41:19 +0200
Subject: [PATCH] Don't mark null chunk sections for block updates
2021-06-15 02:54:17 +00:00
no longer needed as the accessor to get chunksection handles null chunk sections
2021-06-11 12:02:28 +00:00
diff --git a/src/main/java/net/minecraft/server/level/ChunkHolder.java b/src/main/java/net/minecraft/server/level/ChunkHolder.java
2021-06-14 10:42:08 +00:00
index 1f67c9c5f7161ea687983e7ae0ec7d259da9acd3..32bcc55ce15d832e2182d89acecd715947b1667d 100644
2021-06-11 12:02:28 +00:00
--- a/src/main/java/net/minecraft/server/level/ChunkHolder.java
+++ b/src/main/java/net/minecraft/server/level/ChunkHolder.java
2021-06-14 10:42:08 +00:00
@@ -315,6 +315,7 @@ public class ChunkHolder {
this.a(world, blockposition, iblockdata);
2021-06-11 12:02:28 +00:00
} else {
2021-06-14 10:42:08 +00:00
LevelChunkSection chunksection = chunk.getSections()[j];
2021-06-11 12:02:28 +00:00
+ if (chunksection == null) chunksection = new LevelChunkSection(sectionposition.getY(), chunk, world, true); // Paper - make a new chunk section if none was found
ClientboundSectionBlocksUpdatePacket packetplayoutmultiblockchange = new ClientboundSectionBlocksUpdatePacket(sectionposition, shortset, chunksection, this.resendLight);
this.broadcast(packetplayoutmultiblockchange, false);