mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-20 07:02:32 +01:00
Fix single-section chunk packet
This commit is contained in:
parent
3b14fe12a3
commit
1b31a81619
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user