Fix single-section chunk packet

This commit is contained in:
TheMode 2021-06-12 10:46:50 +02:00
parent 3b14fe12a3
commit 1b31a81619

View File

@ -460,10 +460,9 @@ public abstract class Chunk implements BlockGetter, BlockSetter, Viewable, Ticka
* @param section the chunk section to update
* @return the {@link ChunkDataPacket} to update a single chunk section
*/
@NotNull
protected ChunkDataPacket createChunkSectionUpdatePacket(int section) {
protected @NotNull ChunkDataPacket createChunkSectionUpdatePacket(int section) {
ChunkDataPacket chunkDataPacket = createChunkPacket();
// TODO
chunkDataPacket.sections.entrySet().removeIf(entry -> entry.getKey() != section);
return chunkDataPacket;
}