null pointer fix for #5388

This commit is contained in:
Thiakil committed 2019-04-13 11:54:40 +08:00
1 parent 8bc38d47a7
commit c195cd6bbb
2 files changed
+3 -1

No files matched your search

@@ -77,7 +77,7 @@ public abstract class TileEntityMultiblock<T extends SynchronizedData<T>> extend
structure = getNewStructure();
}
if (structure != null && clientHasStructure && isRendering) {
if (structure != null && structure.renderLocation != null && clientHasStructure && isRendering) {
if (!prevStructure) {
Mekanism.proxy.doMultiblockSparkle(this, structure.renderLocation.getPos(), structure.volLength,
structure.volWidth, structure.volHeight, tile -> MultiblockManager.areEqual(this, tile));