fix npe on chunk unload when tile is null (#46)

This commit is contained in:
Dan authored and GitHub committed 2026-06-05 20:58:04 +02:00
1 parent 15298cb677
commit faa052f70c
1 file changed
+3 -1
@@ -252,7 +252,9 @@ abstract class TMultiPart {
* Incremental changes should be sent rather than the whole description
* packet if possible.
*/
def sendDescUpdate() = writeDesc(getWriteStream)
def sendDescUpdate() {
if (tile != null) writeDesc(getWriteStream)
}
/** Called when a part is added or removed from this block space. The part
* parameter may be null if several things have changed.