public override bool RegenerateMesh(ChunkMesher mesher) { Mesh m = mesher.GenerateMesh(this); if (m == null && renderer == null) { return(true); } if (m != null && renderer == null) { renderer = world.CreateChunkRenderer(this); } if (m != null) { renderer.Update(m); } renderer?.SetActive(m != null); return(true); }