mirror of
https://github.com/GTNewHorizons/ForgeMultipart.git
synced 2026-11-20 12:19:58 +00:00
fix npe on chunk unload when tile is null (#46)
This commit is contained in:
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.
|
||||
|
||||
Reference in new issue
Block a user