@@ -2,6 +2,7 @@ package session
22
33import (
44 "bytes"
5+
56 "github.com/cespare/xxhash/v2"
67 "github.com/df-mc/dragonfly/server/block/cube"
78 "github.com/df-mc/dragonfly/server/world"
@@ -86,10 +87,12 @@ func (s *Session) subChunkEntry(offset protocol.SubChunkOffset, ind int16, col *
8687 sub := col .Chunk .Sub ()[ind ]
8788 if sub .Empty () {
8889 return protocol.SubChunkEntry {
89- Result : protocol .SubChunkResultSuccessAllAir ,
90- HeightMapType : subMapType ,
91- HeightMapData : subMap ,
92- Offset : offset ,
90+ Result : protocol .SubChunkResultSuccessAllAir ,
91+ HeightMapType : subMapType ,
92+ HeightMapData : subMap ,
93+ RenderHeightMapType : subMapType ,
94+ RenderHeightMapData : subMap ,
95+ Offset : offset ,
9396 }
9497 }
9598
@@ -106,11 +109,13 @@ func (s *Session) subChunkEntry(offset protocol.SubChunkOffset, ind int16, col *
106109 }
107110
108111 entry := protocol.SubChunkEntry {
109- Result : protocol .SubChunkResultSuccess ,
110- RawPayload : append (serialisedSubChunk , blockEntityBuf .Bytes ()... ),
111- HeightMapType : subMapType ,
112- HeightMapData : subMap ,
113- Offset : offset ,
112+ Result : protocol .SubChunkResultSuccess ,
113+ RawPayload : append (serialisedSubChunk , blockEntityBuf .Bytes ()... ),
114+ HeightMapType : subMapType ,
115+ HeightMapData : subMap ,
116+ RenderHeightMapType : subMapType ,
117+ RenderHeightMapData : subMap ,
118+ Offset : offset ,
114119 }
115120 if s .conn .ClientCacheEnabled () {
116121 if hash := xxhash .Sum64 (serialisedSubChunk ); s .trackBlob (hash , serialisedSubChunk ) {
0 commit comments